let default theme hold default templates.

liquidcms - November 24, 2007 - 19:33
Project:PHPTemplate
Version:HEAD
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:active
Description

This functionality seems so obvious to me and would save so much time on every project i work on that perhaps it is there and i have just missed something???

On nearly every large project i work on i end up with multiple themes for a single site - typically these would include home, default, wide (and possibly admin or others). In the past i have been using sections.module to manage these and it seems to do the trick pretty well.

The major time consumer in project development for me when i move to multiple themes is, however, managing all the template files (and i typically have as many as 40 to 60 tpl files per project). In many cases i require the same tpl in 2 or even all the different themes (example, headers, footer, common blocks, etc) - AND i think this means (please please correct me if i am wrong here!!) that this requires me to have duplicate tpl files in each theme folder (as well as duplicate entries in each template.php file).

I also, regularly need to replicate re-theming code (template.php) for each theme.

Besides the time wasted in having to redo a fix in multiple places - replication is also error prone.

So, again, assuming i have not missed something major in how the phptemplate engine works - the obvious question is why would i need to do this??

Why does the engine not look first in the theme folder for what it needs (tpls, template.php retheme functions, etc) and failing that why doesnt it look in the default theme folder?

Haven't started going through the code yet but this seems like it would be a pretty simple and incredibly useful addition to the engine.

Also, somewhat along this lines - there should be support for the concept of a default CSS as well.

and next.. but unlikely a template engine issue - there needs to be better theme by theme block admin.

Peter Lindstrom
LiquidCMS - Content Management Solution Experts

 
 

Drupal is a registered trademark of Dries Buytaert.