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,
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!'
<xsl if test="$currentPage/ancestor-or-self::*[isDoc]/@id = '1065'">
Chris
is working on a reply...
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.
Continue discussion
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
is working on a reply...
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.