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 1535 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 4541 posts 6021 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

Please Sign in or register to post replies

Write your reply to:

Draft