Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yael Manshary 17 posts 57 karma points
    Oct 18, 2012 @ 10:43
    Yael Manshary
    0

    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

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 18, 2012 @ 11:16
    Fuji Kusaka
    0

    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

  • Yael Manshary 17 posts 57 karma points
    Oct 18, 2012 @ 11:32
    Yael Manshary
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies