Copied to clipboard

Flag this post as spam?

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


  • PCharb 22 posts 42 karma points
    Apr 21, 2011 @ 15:14
    PCharb
    0

    How to use?

    How can i use dictionnary item in razor?

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Apr 21, 2011 @ 15:41
    Sebastiaan Janssen
    0

    Just like you would from a usercontrol:

    @umbraco.library.GetDictionaryItem("yourKey")
  • PCharb 22 posts 42 karma points
    Apr 21, 2011 @ 15:58
    PCharb
    0

    Thank you. It's work

  • Markus 33 posts 58 karma points
    Apr 21, 2011 @ 16:55
    Markus
    1

    Or the dynamic way:

    @Dictionary.yourKey
  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Apr 22, 2011 @ 09:21
    Sebastiaan Janssen
    0

    Much better Markus, thanks I forgot about that one!

  • 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