- Moderated by:
- Support Team
-
- rank:
-
Helper
- registered:
- May 2005
- Status:
- offline
- last visit:
- 20.11.08
- Posts:
- 129
In Xanthia 2.0 themes it was possible to define new identifiers that could then be used in a template. By an identifier I mean like $sitename, $slogan, $maincontent that are found in master.htm. I would like to create a few identifiers for a theme. Is this capability still possible? If not, what is the better option?
BTW, great work on PN 0.8. It really is well done, and my book module works with it! -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
I'm guessing that you mean theme settings/variables. Under xanthia 2.0 these were found under the settings tab in the theme. In xanthia 3.0 we refer to these as theme variables. They can be found under the variables tab when modifying a theme.
Take a look at the theme authoring section of the developer docs.
-Mark -
- rank:
-
Helper
- registered:
- May 2005
- Status:
- offline
- last visit:
- 20.11.08
- Posts:
- 129
Mark,
Thanks for the reply. That was my suspicion, but I wanted to ask in the forum to make sure I didn't head down a false path. So when setting up pages, I can define these variables as anything I want and they will render. Cool. On to coding! -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
Yes they can be defined as (mostly) anything. The values are stored in the theme in an ini file either in the theme (/templates/config/themevariables.ini) if writable or in the pnTemp folder (Xanthia_Config/_themevariables.ini).
You won't see this in MS1 but in the latest SVN code is an method of creating a more structured user interface to the theme settings. It's far from finished (only supporting yes/no radio boxes at the moment) but take a look at the theme variables section of the atom and/or rss themes. This is implemented by adding further sections to the theme variables ini file.
-Mark
