[buddypress-trac] [BuddyPress] #4639: Add template hierarchy support
buddypress-trac
noreply at wordpress.org
Mon May 13 11:58:22 UTC 2013
#4639: Add template hierarchy support
-------------------------+------------------
Reporter: DJPaul | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.8
Component: Theme | Version: 1.7
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------
Comment (by boonebgorges):
I haven't been involved in much of the above, so I'll refrain from making
comments on the technical implementation, other than to say that it makes
sense to me and looks clean, at a glance anyway.
On the hierarchy itself:
- You put groups/single/index-action-{action}.php ahead of groups/single
/index-slug-{slug}.php. I can see why that might make sense (a single
group can have many actions), but it seems unconventional to put the
group-specific template anywhere but at the top of the hierarchy.
- I personally like the idea of having ID/login/nicename-specific items in
the hierarchy, both because it more closely parallels the way that the WP
hierarchy works, and because I can imagine possible use cases where
certain groups/profiles might require totally different markup from
everyone else's. If it doesn't add too much overhead (of either the
technical or cognitive variety), I'd say support should be added for them.
Thanks for plugging away at this one, r-a-y.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4639#comment:48>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list