Copied to clipboard

Flag this post as spam?

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


  • Rik Helsen 670 posts 873 karma points
    Nov 23, 2009 @ 13:41
    Rik Helsen
    0

    is it possible to use dictionary items immediatly in masterpages?

    I was just wondering if it was possible to use dictionary items directly in masterpages?

    now i'm creating xslt files and then macro's for each localised block in my masterpage, but this is sometimes quite a bit of work for a simple title...

     

    Kind regards,
    Rik

  • Patrik Wibron 40 posts 67 karma points
    Nov 23, 2009 @ 13:43
    Patrik Wibron
    1

    Hi!
    You can use this:

    <%# umbraco.library.GetDictionaryItem("YourItem") %>"

     

  • Rik Helsen 670 posts 873 karma points
    Nov 23, 2009 @ 13:52
    Rik Helsen
    0

    Does this require that i add umbraco.library to the header section?

  • Rik Helsen 670 posts 873 karma points
    Nov 23, 2009 @ 13:59
    Rik Helsen
    0

    I figured out i need to replace the second character ;)

     

    thanks!

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Nov 23, 2009 @ 14:02
    Niels Hartvig
    1

    If you click the icon next to the insert field item in the Umbraco template editor you'll see how :)

  • Rik Helsen 670 posts 873 karma points
    Nov 23, 2009 @ 14:48
    Rik Helsen
    0

    ok, now i feel stupid ;)

     

Please Sign in or register to post replies

Write your reply to:

Draft