Site Wide VariablesSite Wide Variables

You are here: Qixite :: Documentation :: Development Docs :: Site Wide Variables
Since Qixite version 0.0.9 site wide variables are saved as XML elements "Variable" with two parameters "Name" and "Value". These elements are added directly to Qixite node.

Accessing Site Wide Variables in Templates

In order to access Site Wide Variable in your template you have to use the following code:
<xsl:value-of select="/Qixite/Variable/@Value[../@Name=&quot;YourVariable&quot;]"/>
If you just want to test if some Site Wide Variable is set you shoould use the following code:
<xsl:if test="/Qixite/Variable/@Name=&quot;YourVariable&quot;">
</xsl:if>
Last modified: 2003-05-28
SourceForge.net LogoCreated with Qixite