On Tue, Nov 18, 2008 at 3:26 PM, The Editor <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 15, 2008 at 7:19 PM, alinome.net <[EMAIL PROTECTED]> wrote:
>>
>> While using BoltWire, new ideas come into my mind:
>>
>> I'm creating a new version of a site design. I copied the old skin,
>> styles and zones with the name of the new design. Then I simply change
>> the skin in site.config and started modifing.
>>
>> But then I realized there were some templates to be changed too. I use
>> them to list news in the home page, and to show articles extracts from
>> another section. I needed to change them because of the new general
>> design: They could not be adapted only by CSS. I didn't think about
>> this before: it seems templates don't belong to a specific design,
>> like skins, styles and zones, right?
>>
>> Of course I can copy a template, e.g. "template.articleextract", and
>> rename it "template.mynewdesign.articleextract", that's what I did,
>> but I have to change its name in every search function that used the
>> old "template.articleextract", from "articleextract" to
>> "mynewdesign.articleextract". It would be nice if templates would be
>> searched like zones, skins and styles. Then it would be a bit easier
>> to create new designs from old ones, keep all of them together, and
>> change from one to another.
>
> We could of course set up a {skin} variable (or a site.config info
> var) and use that in defining the template name, ie
> template=something.{site.config::skin}...
>
> I'll look into adding a line in the template code that will
> automatically check for template.skin if it exists and then default to
> template if not. That would be easier.
>
> Cheers,
> Dan


Ok, just added a line to BoltWire to check template.name.skin if it
exists, before using template.name.  (Assuming you have
template=name). Another hidden nugget of course, but worthwhile. I do
suppose having too many hidden nuggets though could cause problems of
it's own--you are bound to step on one accidentally some day and get
unexpected results. Not likely here, but possible.

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to