Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group extension : standard way to display subnav menu


  • matcho
    Participant

    @matcho

    Hi,

    I’m developing a group extension along with a custom theme. The extension adds a nav_item and the corresponding group page. Now I’d like to display a submenu (subnav) for the new page, in the theme. Is there a standard way to do that ? I read a few posts and docs about it but didn’t understand…

    For example in group admin page template groups/single/admin.php, calling bp_group_admin_tabs() will display the secondary menu. Is there such a function for any other “action” than admin, especially for a custom extension action ? Like : given a slug, display the subnav menu ?

    It seems that the right way to declare subnavigation for a given slug is adding an action on bp_setup_nav and using bp_core_new_subnav_item() to declare items. Could anyone please confirm that ?

    Thank you very much,
    Greetings,
    Mathias

  • You must be logged in to reply to this topic.
Skip to toolbar