Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7268

Could you add the $zone variable in workspace-web\stylesheets\variables.xsl ?

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.0.0
    • None
    • None

      In the list of variables frequently used,

       <!-- Current environment -->
          <xsl:variable name="page-path" select="ametys:pagePath()"/>                         <!-- current page path -->
          <xsl:variable name="page-id" select="ametys:pageId()"/>                             <!-- current page id -->
          <xsl:variable name="lang" select="ametys:lang()"/>                                  <!-- lang code -->
          <xsl:variable name="site" select="ametys:site()"/>                                  <!-- current site name -->
          <xsl:variable name="skin" select="ametys:skin()"/>                                  <!-- Name of the skin -->
          <xsl:variable name="template" select="ametys:template()"/>                          <!-- Name of the template -->
          <xsl:variable name="rendering-context" select="ametys:renderingContext()"/>         <!-- 'back' if back office -->

      you should add this one :

      <xsl:variable name="zone" select="ametys:zone('default')"/><!-- Name of the zone -->

            Unassigned Unassigned
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: