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

Add the sitemap inputdata in the xsl views (news link.xsl, article-abstract.xsl...)

    • Icon: Improvement Improvement
    • Resolution: Invalid
    • Icon: Major Major
    • 3.3
    • 3.0
    • Skins
    • None

        [CMS-1945] Add the sitemap inputdata in the xsl views (news link.xsl, article-abstract.xsl...)

        Update wiki documentation

        Laurence Aumeunier added a comment - Update wiki documentation

        The sitemap root element is the ametys:sitemap()

        Raphaël Franchet added a comment - The sitemap root element is the ametys:sitemap()

        It works fine, the XML is OK but not correspond to AmetysXSLThelper documentation : there is no <sitemap> root element

        <ul>
            <xsl:for-each select="ametys:sitemap()/sitemap/page">
                <li><xsl:value-of select="@sitemap:title"/></li>
            </xsl:for-each>
        </ul>
        

        should be :

        <ul>
            <xsl:for-each select="ametys:sitemap()/page">
                <li><xsl:value-of select="@sitemap:title"/></li>
            </xsl:for-each>
        </ul>
        

        Laurence Aumeunier added a comment - It works fine, the XML is OK but not correspond to AmetysXSLThelper documentation : there is no <sitemap> root element <ul> < xsl:for-each select= "ametys:sitemap()/sitemap/page" > <li> < xsl:value-of select= "@sitemap:title" /> </li> </ xsl:for-each > </ul> should be : <ul> < xsl:for-each select= "ametys:sitemap()/page" > <li> < xsl:value-of select= "@sitemap:title" /> </li> </ xsl:for-each > </ul>

        the inputdata sitemap is not complete, there is not the title, the id of the page..

        Laurence Perier added a comment - the inputdata sitemap is not complete, there is not the title, the id of the page..

        Use AmetysXSLTHelper with ametys:sitemap()

        Laurence Aumeunier added a comment - Use AmetysXSLTHelper with ametys:sitemap()

          ngavalda Nicolas Gavalda (Inactive)
          lperier Laurence Perier
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Created:
            Updated:
            Resolved: