Creating Contact Us XSLT in umbraco -
Creating Contact Us XSLT in umbraco -
i trying utilize code select of pages website , if url has contact in it. pull specific url. neeed create create link url value for-each pull.
<xsl:for-each select="$currentpage/ancestor-or-self::* [@level=$level]/* [@isdoc , string(umbraconavihide) != '0'] [contains(@nodename,'contact')]"> <xsl:value-of select="@nodename"/> </xsl:for-each>
in umbraco url stored url or niceurl (http://our.umbraco.org/wiki/reference/umbracolibrary/niceurl) - node name used generate - not same thing.
something next should work:
<xsl:variable name="siteroot" select="$currentpage/ancestor-or-self::*[@level = 1]" /> <xsl:variable name="urlstring" select="contact" /> <xsl:for-each select="$siteroot//*[@isdoc][not(umbraconavihide = 1)][contains(umbraco.library:niceurl($currentpage/../@id), $urlstring)]"> <xsl:value-of select="@nodename"/> </xsl:for-each>
xslt umbraco
Comments
Post a Comment