Copied to clipboard

Flag this post as spam?

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


  • Sa 118 posts 152 karma points
    Oct 24, 2009 @ 11:28
    Sa
    0

    add values to dictionaryItem

    hi folks.,

    i would like to use dictionaryItem..

    how to add user  values to dictionaryItem ?

  • Tom Maton 387 posts 659 karma points
    Oct 24, 2009 @ 12:01
    Tom Maton
    0

    Hi,

    1. login to the UI
    2. Click the Settings section
    3. Right click on Dictionary click create
    4. Enter your new Dictionary Item Id
    5. enter the text translation into each language you have added.

    Tom

  • Sa 118 posts 152 karma points
    Oct 26, 2009 @ 08:23
    Sa
    0

    thanks.,

    what are the values that can be passed?

  • Nico Lubbers 151 posts 175 karma points
    Oct 26, 2009 @ 08:44
    Nico Lubbers
    0

    String only.

    The dictionary is stored in the database and runtime cached in a hashtable, when creating a dictionary-item you have to specify a name. That name is the key to retrieve the values with. Both key and value are string.

    Although the dictionary looks like a tree, you have to remember that each item must have a unique name even if it is in another branch of the dictionary.

     

  • Sa 118 posts 152 karma points
    Oct 26, 2009 @ 08:59
    Sa
    0

    thanks Nico.,i am going get values from xml file instead of sqlserver db..

    any idea as how to use dictonary here.

    Thanks

  • Nico Lubbers 151 posts 175 karma points
    Oct 26, 2009 @ 10:11
    Nico Lubbers
    0

    What exactly do you mean? Are you trying to put a different datasource to the standard umbraco dictionary functionality? I think that might be a challenge. If you plan to do so: I am interested in the solution you come up with !

    Nico

  • 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