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
Hi there,
I have a XSLT macro which lists all nodes under a current node with a simple for-each loop:
<xsl:for-each select="$currentPage/* [@isDoc and string(./umbracoNaviHide) != '1']">
How do I limit the results to not include nodes which have a certain document type?
this seems like a fairly simple thing to do but I can't figure out the right way to write it.
Thank you!
Yael
Hi Yael,
If you are trying to exclude certain node from your for-each try this instead
<xsl:for-each select="$currentPage/* [@isDoc][not(umbracoNaviHide = 1)][not(self::docTypeAlias)]"/>
//fuji
Hi fuji,
Thank you, that was what I was looking for.
Thank you very much also fot your quick response.
Have a great day,
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Limiting results to not include a certain document type
Hi there,
I have a XSLT macro which lists all nodes under a current node with a simple for-each loop:
<xsl:for-each select="$currentPage/* [@isDoc and string(./umbracoNaviHide) != '1']">
How do I limit the results to not include nodes which have a certain document type?
this seems like a fairly simple thing to do but I can't figure out the right way to write it.
Thank you!
Yael
Hi Yael,
If you are trying to exclude certain node from your for-each try this instead
//fuji
Hi fuji,
Thank you, that was what I was looking for.
Thank you very much also fot your quick response.
Have a great day,
Yael
is working on a reply...