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.
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
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:
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
Can I get through .Net coding using UmbracoAPI ?
Thanks
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
is working on a reply...