Skip to:
Content

BuddyPress.org

Opened 13 years ago

Last modified 10 years ago

#5360 new enhancement

Template hierarchy file names Codex guide?

Reported by: henry.wright Owned by:
Priority: normal Milestone: Awaiting Contributions
Component: Core Version:
Severity: minor Keywords: needs-codex needs-docs
Cc:

Description

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.

Change History (4)

#1 @DJPaul
12 years ago

  • Keywords needs-docs added
  • Milestone Awaiting ReviewFuture Release
  • Type taskenhancement

#2 @slaFFik
10 years ago

  • Milestone Future Release2.8
  • Version 1.9.1

#4 @DJPaul
10 years ago

  • Milestone 2.8Future Release
Note: See TracTickets for help on using tickets.