[buddypress-trac] [BuddyPress] #4639: Add template hierarchy support

buddypress-trac noreply at wordpress.org
Tue Nov 6 10:51:24 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 hnla):

 Replying to [comment:31 DJPaul]:
 > Replying to [comment:30 hnla]:
 > > @DJPaul Paul is there a reason you have left out  the earlier
 suggestion about adding a 'members/single/custom/home.php' from your
 latest revision, which is working for me nicely and is required in some
 form or another.
 > You can override home.php with a file of the same name already; we do
 not need to specify it explicitly (in this patch). We've removed the
 rather arbitrary "custom" directory to keep it matching the structure of
 the BP-Default/theme compat. template file.

 Paul I'm not seeing how then I override home.php to control the outer
 template, I already have overloaded all the bp template files and home.php
 is injected into a parent file be it page.php or buddypress.php etc but I
 don't see how I can change that, could with the template array having
 /custom/home.php but without that we have odd situation where I can ask
 that component-profile.php be used and add to that what ever I need but
 not able to do that for all user account screens in one hit.

 Can you clarify what I'm misunderstanding in this process?

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4639#comment:32>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list