Hi Dynamicweb people.
It seems that FriendlyHref doesn't recognize our subsetting. Ie. /en /de /nl
In user defined urls we've put in subsetting as myshop.com/en
The shop outputs FriendlyHref without the subsetting so the url is myshop.com/products. Where it should be myshop.com/nl/products.
See attached XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<!--
Description: ul/li based navigation. No features from admin implemented.
Recommended settings:
Fold out: True or False
Upper menu: Dynamic or Static
First level: > 0
Last level: >= First level
-->
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes" encoding="utf-8" />
<xsl:param name="html-content-type" />
<xsl:template match="/NavigationTree">
<ul id="leftmenu" class="l1">
<xsl:apply-templates select="Page[@ID = 6 or @ID = 40 or @ID=60 or @ID=80 or @ID=100 or @ID=120]/Page" />
</ul>
</xsl:template>
<xsl:template match="Page">
<xsl:variable name="RelativeLevel" select="'RelativeLevel '" />
<xsl:variable name="activeitem" select="'activeitem '" />
<xsl:variable name="inpath" select="'inpath '" />
<xsl:variable name="toggle" select="'prMenuToggle '" />
<xsl:variable name="classes">
<xsl:if test="@Active='True'">
<xsl:value-of select="$activeitem" />
</xsl:if>
<xsl:if test="@InPath='True'">
<xsl:value-of select="$inpath" />
</xsl:if>
<xsl:if test="@ChildCount!='0'">
<xsl:value-of select="$toggle" />
</xsl:if>
</xsl:variable>
<li>
<a>
<xsl:attribute name="class">
<xsl:value-of select="normalize-space($classes)" />
</xsl:attribute>
<xsl:attribute name="href">
<!-- <xsl:value-of select="concat(@FriendlyHref, '&Pagetitle=', @Title, '%20-%20', @MenuText, '&groupname=', @MenuText)" disable-output-escaping="yes"/> -->
<xsl:value-of select="@FriendlyHref" disable-output-escaping="yes"/>
</xsl:attribute>
<xsl:value-of select="@MenuText" disable-output-escaping="yes"/>
</a>
<xsl:if test="Page">
<ul class="M{@AbsoluteLevel}">
<xsl:if test="@InPath='False'">
<xsl:attribute name="style">
<xsl:text>display:none;</xsl:text>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="Page" />
</ul>
</xsl:if>
</li>
</xsl:template>
<xsl:template name="generatedwtag">
<xsl:param name="tagname" />
<xsl:comment>
<xsl:value-of select="concat('@', $tagname)" />
</xsl:comment>
</xsl:template>
</xsl:stylesheet>