Copied to clipboard

Flag this post as spam?

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


  • Graham Carr 277 posts 389 karma points
    Mar 06, 2013 @ 15:52
    Graham Carr
    0

    Accessing dictionary items within form.cshtml

    I am customising the look and feel of my forms using the method outlined in creating a folder with the form Guid under the forms folder that exists under the Views folder.

    I need to have some multi-lingual important information within the layout of the form (next to the submit button) which I have done by modifying the forms copy of form.cshtml. I need to make this text that it shows multi-lingual so how do I access the dictionary item that I have created? The normal @Dictionary method does not seem to work.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 06, 2013 @ 16:03
    Tim Geyssens
    0

    Try @umbraco.library.GetDictionaryItem('YourDictionaryItemsName')

  • Graham Carr 277 posts 389 karma points
    Mar 06, 2013 @ 16:12
    Graham Carr
    0

    Thanks Tim, works perfectly.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 06, 2013 @ 16:16
    Tim Geyssens
    0

    Great :)

  • 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