[buddypress-trac] [BuddyPress] #4209: bp_get_displayed_user_nav() should have exclusion argument. (code included)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu May 17 17:42:14 UTC 2012

#4209: bp_get_displayed_user_nav() should have exclusion argument. (code included)
 Reporter:  DennisSmolek                         |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Members                              |  Release
 Severity:  normal                               |     Version:  1.5.5
 Keywords:  1.7-early needs-testing dev-         |  Resolution:
  feedback                                       |

Comment (by DennisSmolek):

 I agree it makes sense to keep it out of template files if possible, but
 without defining my own template function how would I display the nav
 multiple times? Example,
 Nav array(a,b,c,d,e)

 Nav1 has no (d,e): So a, b, c

 Then later in the page I have another one,

 Nav2 no (a,b) So c, d, e;

 The only thing that comes to mind in the remove_*_item method would be to
 add another function to add those items back after you remove it, or I
 have to define my own function to display the nav items like the one

 The snippet I wrote allows you to say keep the main nav in tact but use a
 modified version later in the page if needed.

 Just as an example I'm attaching a screenshot of the site I'm working on,
 its still early in the dev but you can see the main nav and then the
 "Accounts" screen, which will the Profile and Settings Tab and their
 subnav's as well.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4209#comment:2>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list