[buddypress-trac] [BuddyPress Trac] #5360: Template hierarchy file names Codex guide?

buddypress-trac noreply at wordpress.org
Thu Jan 30 11:18:12 UTC 2014


#5360: Template hierarchy file names Codex guide?
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:
     Type:  task          |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.9.1
 Severity:  minor         |   Keywords:  needs-codex
--------------------------+-----------------------------
 http://codex.buddypress.org/themes/theme-compatibility-1-7/template-
 hierarchy/

 The Codex article on the template hierarchy is extremely helpful but what
 to name template files may not be obvious to people unfamiliar with BP.

 For example, if I wanted to create a template file for member's personal
 activity, I wouldn't be using:

 * index-action-activity.php or
 * index-action-personal.php

 I would have to use:

 * index-action-just-me.php

 I might be wrong but you'd have to dig into bp-activity-loader.php to find
 out the slug for this action is 'just-me'.

 I think this is probably one of the less obvious examples because
 members/username/activity/just-me redirects up one level to
 members/username/activity - Also, the label for this action is 'Personal'
 - So users never really see 'just-me'.

 Could a list of all of the core actions be added to the Codex article so
 users know what to name their template files?

 Component names are obvious so are self explanatory.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5360>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list