WordPress.org

Forums

BP Group Hierarchy
[resolved] Make Tree View the Default? (6 posts)

  1. rsteer
    Member
    Posted 3 years ago #

    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.

    Thanks.

    http://wordpress.org/extend/plugins/bp-group-hierarchy/

  2. David Dean
    Member
    Plugin Author

    Posted 3 years ago #

    Hi rsteer,

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

  3. rsteer
    Member
    Posted 3 years ago #

    Thanks! It says it's "experimental", but it seems to work fine.

  4. David Dean
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  5. rsteer
    Member
    Posted 3 years ago #

    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!"

  6. David Dean
    Member
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic