Copied to clipboard

Flag this post as spam?

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


  • madhav shevde 3 posts 23 karma points
    Oct 28, 2009 @ 11:51
    madhav shevde
    0

    How can i use umbraco.library in a template ?

    Hi

    How can i use umbraco.library in a template ? I want to use umbraco.library:niceurl in a template. Actually i want to create a link, when that link is clicked i want to return to parent page, hence i want to use umbraco.library:niceurl function to which i will be passing parent id.

    Thanks and Regards

    Madhav

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Oct 28, 2009 @ 12:00
    Lee Kelleher
    0

    Madhav,

    Sure, you can use in-line code in your master templates (I am assuming you are using Umbraco v4).

    Try something like this:

    <%= umbraco.library.NiceUrl(1066) %>

    Replace the "1066" with whatever your nodeId will be.  Play around with it, see how it goes.

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft