Copied to clipboard

Flag this post as spam?

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


  • Rohit Sovale 1 post 71 karma points
    Nov 11, 2016 @ 11:28
    Rohit Sovale
    0

    How to get the node id of current page in XSLT?

    Basically i want to have an if condition in XSLT in which I want to check current page node id , so that I can hide or skip some set of code based on this check . Can anybody please help me on this? Thanks in advance.....

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Nov 11, 2016 @ 15:45
    Alex Skrypnyk
    0

    Hi Rohin,

    Usually it works:

    $currentPage/@id
    
    <xsl:if test="$currentPage/@id = @id">
    

    Thanks,

    Alex

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Nov 14, 2016 @ 11:29
    Alex Skrypnyk
    0

    Hi Rohin,

    Did you solve your issue?

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft