- Moderated by:
- Support Team
-
- rank:
-
Helper
- registered:
- April 2005
- Status:
- online
- Posts:
- 163
In new theme module we can create and edit easly theme variables.
They are stored in ini files.
Everything works good till we want to add variable with quote ( " ) sign - it will be removed.
Is this necessary? Without quotes we cannot put HTML tags to theme vars (ie. footer text, copyright or other notes, for which we don't need to use blocks). And there is no reason to disable this possibility.
We can store in ini files text with quotes. In this case whole var value have to be enclosed with triple quotes ("""). This also allows line breaks in variable values.
Another thing I've found in theme variables management is variable types. There is few types - "text", "yesno" (displayed as radio button), select. It works when we write appropriately vars in themevariables.ini file. But there is no interface for creating variables other then "text" from the theme administration. Is this intended or just forgotten?
--
Polish Zikula Team
Bianor Works - my Zikula works on CoZi -
- rank:
-
Professional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 2975
Jusuff
Without quotes we cannot put HTML tags to theme vars (ie. footer text, copyright or other notes, for which we don't need to use blocks).
Why not create a template for these things... and include it to the theme. That is how I manage areas which have static theme-level content which I may want to change. For example the head, horizontal nav, footer, ect... Probably for the same reason you want to create vars... Why edit the same information on multiple templates? That is not ideal.
--
David Pahl
Zikula Support Team -
- rank:
-
Helper
- registered:
- April 2005
- Status:
- online
- Posts:
- 163
AmmoDump: yes, I'm creating templates for some constant content (ie. header for all head content).
But theme variables have one great advantage - they can be edited by admin panel. When I'm creating site for my self - I don't care. I can (and even prefer edit directly files.
But when I'm creating site for customer - I would like to give him possibility to change all content by admin panel. PostNuke is CMS - right?
At now - theme variables are working. Are available in all templates (so you don't need to change them for each of templates). I've just found and report some inconvenience or lack in their management.
--
Polish Zikula Team
Bianor Works - my Zikula works on CoZi -
- rank:
-
Professional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 2975
I am not disagree with you on this point. After doing some tinkering of my own with the variable interface, I have made the same conclusion. Anything including and after a " or an = is removed.
I also would add, if these are non-template specific variables, why is it that they have to be negotiated via the Admin Panel through, a specific theme to make changes. Curious.
I am glad there are a growing number of us, using some logic to manage themes.
--
David Pahl
Zikula Support Team -
- rank:
-
Helper
- registered:
- February 2005
- Status:
- offline
- last visit:
- 17.11.08
- Posts:
- 411
For a while I've been using simple plugins for things that affect all templates in a site, footers, static header menus etc. I haven't got around to messing with theme variables yet. Would there be any advantages/disadvantages over the way I'm doing it now by incuding templates instead of using plugins.
