Copied to clipboard

Flag this post as spam?

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


  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 25, 2010 @ 05:56
    Kurniawan Kurniawan
    0

    Get NodeID of the page

    Hi,

    How to get NodeID in the page easily, from Umbraco Admin CMS ?

    and

    How to get NodeID based on Alias Page ?

     

    Thanks

  • Kim Andersen 1447 posts 2196 karma points MVP
    Aug 25, 2010 @ 08:32
    Kim Andersen
    0

    Hi Kurniawan

    If you want to see the nodeId in the backend of Umbraco you can do it two ways. Either you can click the node you want to find the node id of, and go to the "Properties"-tab. Here you'll see the Id. Another way is to just hover your mouse over the id of a node, and in the bottom left corner of the browser your see something like javascript:openContent(1089); <--This means that the node has an id of 1089.

    If you want to grab the id in the frontend you can e.g. do it like this in XSLT:

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

    This will render the id on the current page that you are standing on, also if you are on the page through an alias.

    /Kim A

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 25, 2010 @ 08:42
    Kurniawan Kurniawan
    0

    Can I get through .Net coding using UmbracoAPI ?

    Thanks

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    Aug 25, 2010 @ 08:52
    Kim Andersen
    0

    Yeah you can for sure, but I affraid I'm not the one to give you the right answer as I'm not a .NET guy.

    But maybe this post can help you: http://our.umbraco.org/forum/templating/templates-and-document-types/7032-Get-node-id-in-content-using-aspnet

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft