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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
https://codex.buddypress.org/template-hierarchy/
AND/OR
https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/