Skip to:

Opened 10 years ago

Last modified 7 years ago

#5360 new enhancement

Template hierarchy file names Codex guide?

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


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
10 years ago

  • Keywords needs-docs added
  • Milestone changed from Awaiting Review to Future Release
  • Type changed from task to enhancement

#2 @slaFFik
7 years ago

  • Milestone changed from Future Release to 2.8
  • Version 1.9.1 deleted

#4 @DJPaul
7 years ago

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