Copied to clipboard

Flag this post as spam?

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


  • Pavel Gabor 13 posts 53 karma points
    Sep 06, 2012 @ 20:58
    Pavel Gabor
    0

    Access child dictionary items loaded with library.GetDictionaryItems function call in razor script

    Hi,

    I'm working on multilingual web site using razor scripts. Some razor scripts use strings that are stored in umbraco dictionary. Dictionary items are organized in such a way, that every razor script has one dictionary item with childs for every string used in script:

    - Razor script alias

    o String 1

    o String 2

    I’m looking for a way to load all strings used by script with one call. I managed to load all dictionary items using code :

    var resources = library.GetDictionaryItems("scriptAlias")

    My question is how can I access child items contained in loaded resources.

    Thanks in advance.

     

Please Sign in or register to post replies

Write your reply to:

Draft