Copied to clipboard

Flag this post as spam?

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


  • Touhid 97 posts 117 karma points
    Dec 29, 2010 @ 08:16
    Touhid
    0

    how to get node id using xslt

    HI

    How can i get current content node id using template or xslt.

    Touhid

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Dec 29, 2010 @ 09:14
    Ismail Mayat
    3

    In the template you can do 

    <umbraco:Item field="pageID" runat="server"></umbraco:Item>

    in xslt you can do

    <xsl:value-of select="$currentPage/@id"/>

    I would recommend you download and install the creative website starter kit and look at some of the xslts in there to get to 

    grip with Umbraco basics.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft