On Sat, Nov 22, 2008 at 8:40 AM, alinome.net <[EMAIL PROTECTED]> wrote:
>
>> 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
>
> I have another suggestion: code.skinvars is a good candidate for that
> system too. Once you said you were considering removing skin vars, but
> anyway it would be coherent that they belong to specific skins. Then
> all design elements (I think I don't forget something) would be skin-
> specific. The benefit is great: you can create a new design, based on
> the old one but with no common pages (what would be a problem if
> something goes wrong), and change from one to another just changing
> the "skin" variable in site.config.


Well first, I am still inclined to eliminate the code.skinvars page,
but if we do keep it into 3.0, I agree we should have an option of
code.skinvars.skin.  Perhaps we should just call them code.vars.*, and
encourage them for all kinds of system wide vars and parameters.

It would be a bit trickier than templates however, as we would want to
be able to get some vars from code.vars and code.vars.skin.  So if a
specific value is not in the latter, we should check the former. With
templates, you only use one page or the other, based on whether or not
the skin template page exists. With vars, I envision you would use the
default values wherever individual values are not explicitly
overwritten in a subpage.

I'll add this to my list of todo's and look into implementation when I
get some time. Of course in the meantime, as you know, info vars work
anywhere, anytime without special tweaks to the core code--which I
tend to resist.

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