Copied to clipboard

Flag this post as spam?

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


  • Probocop 51 posts 71 karma points
    Dec 03, 2010 @ 17:25
    Probocop
    0

    Check if current page is a descendant of a certain page?

    Hi,

    On the site I'm currently developing there is a specific section on the site that requires an additional stylesheet loading.

    I'm trying to write an <xsl:if> statement which basically says - If current page, ancestor or self has the ID of '1065'

    I can't quite get it right though, how could I achieve this?

    Thanks!'

  • Chris Koiak 700 posts 2626 karma points
    Dec 03, 2010 @ 17:48
    Chris Koiak
    0
    <xsl if test="$currentPage/ancestor-or-self::*[isDoc]/@id = '1065'">

    Chris

  • 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