Hi rsteer,
Just check the “Hide the flat list of groups…” box on the Group Hierarchy options page in your dashboard.
Thread Starter
rsteer
(@rsteer)
Thanks! It says it’s “experimental”, but it seems to work fine.
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.
Thread Starter
rsteer
(@rsteer)
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!”
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.