Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How do i achieve the following in 4.5 schema?
<xsl:for-each select="$parent/node [string(./data [@alias='umbracoNaviHide']) != '1' and @level <= $maxLevelForSitemap and @nodeTypeAlias!='NewsItem' ']">
i've come this far, but it doesnt work
<xsl:for-each select="$parent/* [@isDoc and string(umbracoNaviHide) != '1' and @level <= $maxLevelForSitemap and @nodeTypeAlias!='NewsItem']">
Hi Claus,
Try this:
<xsl:for-each select="$parent/*[@isDoc] [not(self::NewsItem)][not(umbracoNaviHide = 1)][@level <= $maxLevelForSitemap]">
/Chriztian
i was also struggling with a similar issue today related to the absence of 'nodetypealias' in the new xml schema
i found this article: http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/no-more-@nodetypealias
basically, instead of "@nodeTypeAlias!+'NewsItem'"
you can now use "local-name()!='NewsItem'"
[just thought this might help someone else]
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
exclude nodetypealias in 4.5
How do i achieve the following in 4.5 schema?
i've come this far, but it doesnt work
Hi Claus,
Try this:
/Chriztian
i was also struggling with a similar issue today related to the absence of 'nodetypealias' in the new xml schema
i found this article: http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/no-more-@nodetypealias
basically, instead of "@nodeTypeAlias!+'NewsItem'"
you can now use "local-name()!='NewsItem'"
[just thought this might help someone else]
is working on a reply...