Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Defining new identifiers for use within a theme
  • Posted: 19.05.2006, 01:59
     
    Paustian
    rank:
    Helper 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!
  • Posted: 19.05.2006, 14:19
     
    rank:
    Moderator 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
  • Posted: 19.05.2006, 20:47
     
    Paustian
    rank:
    Helper 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!
  • Posted: 19.05.2006, 21:22
     
    rank:
    Moderator 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

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula