Skip to content

Available parameters

Find out which parameters are already available in the XML, and how to define and access them in your templates.

Viewing available parameters

As a logged-in user, you can append the GET parameter ?debug to any frontend URL. If the URL already contains a GET parameter, append &debug instead.

This displays the complete generated XML document, including all available parameters.

Please note: The “Debug Devkit“ extension must be enabled for this parameter to work.

Available parameters

Below is an example showing the available parameters in the params element:

              
<data>
    <params>
        <today>2026-11-27</today>
        <current-time>15:19</current-time>
        <this-year>2026</this-year>
        <this-month>11</this-month>
        <this-day>27</this-day>
        <this-week-number>48</this-week-number>
        <timezone>+01:00</timezone>
        <website-name>Example Sym8</website-name>
        <page-title>Home</page-title>
        <root>https://example.org</root>
        <workspace>https://example.org/workspace</workspace>
        <workspace-path>/workspace</workspace-path>
        <http-host>example.org</http-host>
        <root-page>home</root-page>
        <current-page>home</current-page>
        <current-page-id>1</current-page-id>
        <current-path>/</current-path>
        <parent-path>/</parent-path>
        <current-query-string><![CDATA[debug]]></current-query-string>
        <current-url>https://example.org</current-url>
        <upload-limit>5242880</upload-limit>
        <symphony-version>2.85.1</symphony-version>
        <cookie-xsrf-token>[redacted]</cookie-xsrf-token>
        <cookie-username>timboeden</cookie-username>
        <cookie-pass>[redacted]</cookie-pass>
        <page-events></page-events>
    </params>
    ...
</data>

            

Using parameters in the master template

To use the available parameters in your master template (/workspace/utilities/master.xsl), you can define them once as global variables and access them throughout your templates.

This makes the parameters easier to reuse without having to repeat the same XPath expressions.

Global variables must be declared at the top level of the stylesheet, outside any template. If you use xsl:import, these declarations must appear after the import statements.

A possible definition of global variables, grouped by context, might look like this:

              
<!-- Website -->
<xsl:variable name="root" select="normalize-space(/data/params/root)" />
<xsl:variable name="website-name" select="normalize-space(/data/params/website-name)" />
<xsl:variable name="domain" elect="normalize-space(/data/params/http-host)" />
<xsl:variable name="workspace" select="normalize-space(/data/params/workspace)" />
<xsl:variable name="workspace-path" select="normalize-space(/data/params/workspace-path)" />

<!-- Current page -->
<xsl:variable name="root-page" select="normalize-space(/data/params/root-page)" />
<xsl:variable name="current-page" select="normalize-space(/data/params/current-page)" />
<xsl:variable name="current-page-id" select="normalize-space(/data/params/current-page-id)" />
<xsl:variable name="current-path" select="normalize-space(/data/params/current-path)" />
<xsl:variable name="parent-path" select="normalize-space(/data/params/parent-path)" />
<xsl:variable name="page-title" select="normalize-space(/data/params/page-title)" />

<!-- Date and time -->
<xsl:variable name="today" select="normalize-space(/data/params/today)" />
<xsl:variable name="current-time" select="normalize-space(/data/params/current-time)" />
<xsl:variable name="this-year" select="normalize-space(/data/params/this-year)" />
<xsl:variable name="this-month" select="normalize-space(/data/params/this-month)" />
<xsl:variable name="this-day" select="normalize-space(/data/params/this-day)" />
<xsl:variable name="this-week-number" select="normalize-space(/data/params/this-week-number)" />
<xsl:variable name="timezone" select="normalize-space(/data/params/timezone)" />

            

You can then output the variables using xsl:value-of in any template:

              
<xsl:value-of select="concat($root, '/')"/>

            

If you want to use the variable within an HTML element’s attribute, enclose the XPath expression in curly braces. This is known as an Attribute Value Template (AVT):

              
<a href="{concat($root, '/')}">
  <xsl:value-of select="$website-name"/>
</a>

            

Dynamic parameters

In addition to the predefined parameters, dynamic parameters may also be added to the parameter pool, depending on the current front-end page and its processing. These can originate from the following sources:

  • Page types
  • Page events
  • Data sources

Page types

If an additional parameter has been assigned to a page, it is included in the XML params element.

In the following example, the parameter admin has been assigned to a front-end page. The page is only accessible to logged-in authors:

              
<data>
    <params>
        ...
        <page-types>
            <item handle="admin">admin</item>
        </page-types>
        ...
    </params>
</data>

            

Page events

If an event is attached to a page, it’s handle is listed in the page-events element:

              
<data>
    <params>
        ...
        <page-events>
            <item handle="customer-message">customer-message</item>
        </page-events>
        ...
    </params>
</data>

            

Passing parameters between data sources

Data sources can add their own parameters to the XML, allowing subsequent data sources to use them for filtering.

To do this, select the desired field under Parameters in the “Content“ section of a data source.

Info on parameters

Parameter names follow this structure: ds-[data-source-name].[field-name]. When referencing a parameter in a filter, prefix its name with a dollar sign ($).

In the following example, a data source named “All invoices“ adds the customer field to the parameter pool:

              
<data>
    <params>
        ...
       <ds-all-invoices.customer>
            <item handle="125">125</item>
            <item handle="148">148</item>
            <item handle="231">231</item>
        </ds-all-invoices.customer>
        ...
    </params>
</data>

            

In another data source, you can now use the System ID in the Filters section along with the parameter $ds-all-invoices.customer to retrieve the corresponding entries and include them in the XML output.