[buddypress-trac] [BuddyPress] #4639: Add template hierarchy support
buddypress-trac
noreply at wordpress.org
Mon Nov 12 19:30:12 UTC 2012
#4639: Add template hierarchy support
-------------------------+-----------------------------
Reporter: DJPaul | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Theme | Version:
Severity: normal | Resolution:
Keywords: commit |
-------------------------+-----------------------------
Comment (by rogercoathup):
Replying to [comment:35 r-a-y]:
> The problem is we're referring to home.php in two different use-cases.
Both as a regular page template and a template part.
>
> For template hierarchy, we should use `index.php` (or page.php, etc.) as
our marker instead of `home.php`.
>
I agree it's best to implement with separate names (index.php for the
outer, with home.php for the inner template part).
@johnjamesjacoby - if you are canning it for 1.7, can you explain how one
can best organise code / themes files to create sites that utilise
template parts, but don't want to inject all BP related content into the
same outer template? Where would you suggest we put the logic / code to
determine the outer part?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4639#comment:42>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list