If other themes used by sections has a front-page.tpl, where do they go?

beckyjohnson - January 20, 2009 - 03:36
Project:Sections
Version:6.x-1.2
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm building a site with multiple sections and each section kind of has a pseudo front page even though they aren't really on the traditional drupal front page. If I include a front-page.tpl.php in my theme that goes to one of these sections, then with the section assigned to the theme have this front page?

I'm just trying to figure out how best to do it. I know i can do multiple templates by using the node id or whatever but it seemed more straight forward if Sections would just read that each assigned theme had a front page......

I hope this make sense. I doubt it's possible but I thought I would ask.

Thanks,
Becky

#1

hass - January 28, 2009 - 07:36
Status:active» fixed

I'm not 100% sure, but it sounds like your are asking for template suggestion for your themes.

I have implemented this some time ago. For the details see sections_preprocess_page() in sections module. This hook tries to find "page" template files with the names sections-page-[section-id].tpl.php and sections-page-[name].tpl.php. It sounds like you are asking for this!?

#2

System Message - February 11, 2009 - 07:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.