[buddypress-trac] [BuddyPress] #2649: Add template hierarchy support into BuddyPress
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Sep 23 21:04:44 UTC 2010
#2649: Add template hierarchy support into BuddyPress
--------------------+-------------------------------------------------------
Reporter: DJPaul | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.3
Component: Core | Keywords:
--------------------+-------------------------------------------------------
WordPress' [http://codex.wordpress.org/Template_Hierarchy template
hierarchy] allows it to use specific template files for specific pages, or
fall back to a default.
The attached patch is a first-pass of introducing the same to BuddyPress,
built against the trunk. It has been taken out of a custom plugin and it
has a designed limitation that it won't affect the main page templates
which are always included by bp_core_load_template().
Most of the BP-Default theme uses bp_core_load_template() to load a "main"
template file which then includes an appropriate secondary template to
build the page; the latter is where I decided to patch.
--
Ticket URL: <http://trac.buddypress.org/ticket/2649>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list