• 1.) Collapse a page with all its children.
    2.) Delete the page.
    3.) Now the page is in the basket and all the children are hidden. At least in the admin area, the frontend still shows them.

    Clicking on ‘Expand all’ will show the children again but most users will not recognize that they do not see all pages. This is a big UX issue.

    I guess setting a post to different (custom) post_status will also hide the collapsed children. So testing if the parent is in the same list (admin table) as the child to be hidden would probably be the best method to fix this.

    Regards,
    Kurt

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bravokeyl

    (@bravokeyl)

    Hi Kurt,

    Now the page is in the basket and all the children are hidden. At least in the admin area, the frontend still shows them.

    When you say the page is in the basket, do you mean in the trash?

    but most users will not recognize that they do not see all pages. This is a big UX issue.

    I didn’t understand this, what most users won’t recognize, do you mean that they think that child pages are also deleted?

    Thread Starter kschlager

    (@kschlager)

    Yes, I mean trash, sorry.

    After deleting the parent page, the child pages are gone. They are not deleted, only the parent page got deleted, but they are visible nowhere. So you got ‘ghost’-pages. The child-pages are still there and are fuly working in the frontend but you can’t find them in the admin area.
    Of course unless you click the ‘Expand All’ button. Most users will not see nor know these buttons if you don’t tell them.

    Did a quick fix: I modified ‘collapse_subpages’ to look if the parent page is in the list before collapsing. Would be great if you could test this and integrate it in your next update if it works.

        function collapse_subpages(parent_id) {
            jQuery('#the-list').find('[data-parent="' + parent_id + '"]').each(function() {
    			if (jQuery('#the-list').find('[data-acs-id="' + parent_id + '"]').length) {
    				jQuery(this).hide();
    				collapse_subpages(jQuery(this).attr('data-acs-id'));
    			}
            });
        }
    
    Plugin Author bravokeyl

    (@bravokeyl)

    Ah! I get it now. Thanks, I will fix it and release a new version.

    • This reply was modified 6 years, 8 months ago by bravokeyl.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deleting a page with collapsed children hides the children’ is closed to new replies.