Support » Plugin: WP-dTree » Include parent page in tree hierarchy

  • Resolved jmonroesmith

    (@jmonroesmith)


    I’ve searched the entire support section to no avail. I apologize if I missed it. I only checked topics that had (seemingly) relevant titles.

    Question: Is there a simple method for including the parent page in the tree hierarchy?

    Without the parent page in the hierarchy, users must use the breadcrumb trail or global navigation to return to the parent page. This is not optimal from a UX perspective.

    I would like:
    -parent page
    –child
    —grandchild
    —-great-grandchild
    –child
    etc.

    The work-around is to list all the page IDs in the ‘Include’ field. This isn’t much of a problem if you have 10 or 20 child pages. However, if you have a 100+ pages in four WP-dTree widgets, it becomes a maintenance problem.

    I can live with the work-around, but I’d rather have a more elegant solution that requires less manual input and maintenance.

    https://wordpress.org/plugins/wp-dtree-30/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ulfben

    (@ulfben)

    I’m not sure what you’re asking. The page tree always show the entire hierarchy. Just make sure you haven’t activated Set "Child of" to active page and you should be good.

    I apologize if my explanation was not clear. I’ll try again.

    The problem is simple. My top-level pages (the pages that are in my global navigation and do not have parent pages) do not show up in the tree.

    For example, for the top-level page called “Business Support”, the tree looks like this:

    open all | close all
       Polices & Procedures
     + Business Documents
     + Business Services
     + Financial Management
     + IT Support

    The top level page (the parent page to all of the above tree) is absent. The only way to navigate back to “Business Support” is to use the global navigation. I would prefer the tree look like this:

    open all | close all
       Business Support
         Polices & Procedures
       + Business Documents
       + Business Services
       + Financial Management
       + IT Support

    Does that make sense?

    I do not have “Set ‘Child of’ to active page” enabled.

    Plugin Author ulfben

    (@ulfben)

    I’ll look into it.

    Plugin Author ulfben

    (@ulfben)

    I can not re-create your problem. Here’s a screenshot showing the default WP-dTree Pages widget.

    Ergo: I didn’t change any settings at all, just published the pages in a hierarchy, and the widget correctly displays the full tree.

    The default settings of the widget can be seen here.
    And the pages here.

    I think you were unable to duplicate the issue because your example only has one top-level page and mine has several (11 to be exact). If you add another top-level page, it will show in the list. That is not the desired look. I do not want it to be another global navigation. I want the tree menu to be “local” navigation for that particular section of the site; in my example, that would be Business Services.

    To remove other pages from the tree, you have to set “Select only children of:” to the page id, but then the top-level page is excluded from the tree. Perhaps if you set yours to the page ID it will duplicate the issue.

    As I stated in my original post, the desired look can be achieved by inputting all the page IDs in the “Include” field, but that becomes somewhat impractical if you have 80 to 100 (or more) pages.

    If that is how I have to achieve the desired look, then I guess I do not have any choice. I greatly appreciate your help. Aside from this issue, I really like this plugin.

    Plugin Author ulfben

    (@ulfben)

    So what you want is Select only children of: including the parent page?

    That makes a lot of sense. I’ll look into it over the weekend.

    Yes. Thank you for summing up the issue so succinctly. It would have helped if I stated that in the beginning.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Include parent page in tree hierarchy’ is closed to new replies.