Copied to clipboard

Flag this post as spam?

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


  • Petr Snobelt 923 posts 1534 karma points
    Dec 02, 2009 @ 11:57
    Petr Snobelt
    0

    Accessing buildin properties using getItem

    Hi, I can access properties using

    <%=umbraco.library.GetItem("propertyAlias")%>

    is there a way how to access build-in properties like id or pageName? I try add @ before name but without luck.

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Dec 02, 2009 @ 12:54
    Dirk De Grave
    1

    Petr,

    You could use

    <%= umbraco.presentation.nodeFactory.Node.GetCurrent().Id %>

     

    Hope this helps.

    Regards,

    /Dirk

  • 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.

Please Sign in or register to post replies