[buddypress-trac] [BuddyPress] #4639: Add template hierarchy support
buddypress-trac
noreply at wordpress.org
Thu Nov 8 13:01:31 UTC 2012
#4639: Add template hierarchy support
-------------------------+------------------
Reporter: DJPaul | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.7
Component: Theme | Version:
Severity: normal | Resolution:
Keywords: commit |
-------------------------+------------------
Comment (by rogercoathup):
Replying to [comment:5 r-a-y]:
> The attached patch only works for the users component as an example.
You can also do /members/single/home-{username}.php as well. And Roger,
if you use one of these templates, it will become the outer template.
>
> Let me know what you guys think.
So, to clarify on template hierarchy going forward - am I correct in
thinking:
If I implement a '''home.php''' in '''my-
theme/buddypress/members/single''', it will be used as a template part and
injected in to page.php (or buddypress.php, etc.)
If I implement a '''home.php''' in '''my-theme/members/single''', it will
not be injected into page.php, and will therefore have to be a full outer
template including its own header, footer, sidebar, etc.
Is that correct?
If so, I guess if I implement both, the one in /my-theme/members/single
takes precedence?
If I'm not correct -- how does it work :)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4639#comment:33>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list