Support » Plugin: BP Group Hierarchy » [Plugin: BP Group Hierarchy] Make Tree View the Default?

  • Resolved rsteer


    Is there a way to make the Tree tab the default view when a user clicks on Groups? I tried changing the Groups page permalink to “…groups?tree”, but the question-mark wasn’t saved so that doesn’t work.

    Without the tree view being the default, most users would just see a long list of groups and wouldn’t even KNOW that there’s a hierarchy.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author David Dean


    Hi rsteer,

    Just check the “Hide the flat list of groups…” box on the Group Hierarchy options page in your dashboard.

    Thanks! It says it’s “experimental”, but it seems to work fine.

    Plugin Author David Dean


    Glad to hear it! It’s marked “experimental” because, while it works with the default BuddyPress theme, some themes that are really different have problems with it.

    What file could I edit to change the default tree view to expanded rather than collapsed?

    If a user is not already familiar with the site, and knows that there are more groups than the ones showing initially, they may not realize they should click the [+] symbol. They might take the initial collapsed “tree” listing at face value, and say to themselves, “Oh, I guess there are only two groups!

    Plugin Author David Dean


    You could edit the tree-loop.php file in the templates folder.

    Once you’ve got it the way you like it, copy the entire tree folder to your theme directory, or you’ll lose your edits next time there’s a new plugin version!

    Right now that file is just adding links to trigger the AJAX loading of subgroups, so it’s more complicated than just switching to an expanded view. You could build a recursive tree traversal script in there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: BP Group Hierarchy] Make Tree View the Default?’ is closed to new replies.