Copied to clipboard

Flag this post as spam?

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


  • Philip Hayton 98 posts 435 karma points
    Apr 16, 2019 @ 09:37
    Philip Hayton
    0

    Magic Strings in Radio List

    Hi guys,

    Please can someone clarify whether it's possible to use magic strings as values in a radio list? I'm sure I've seen magic strings used to create multi-lingual back ends...

    Basically I want to have translated string values of a radio list, something like this:

    • [#DataTypes.MyDataType.Value1]
    • [#DataTypes.MyDataType.Value2]
    • ...etc

    Which would then pull from the Dictionary.

    I can't for the life of me get it working. Not sure if I'm being silly, or whether it's simply not possible.

    Any help is greatly appreciated!

    Kind regards

    Phil

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 16, 2019 @ 10:14
    Lee Kelleher
    0

    Hi Phil,

    I haven't tried it myself, but I agree that it'd be great for the labels to work that way.

    Which version of Umbraco are you using? I'm happy to take a look at the core source, see if it can do it or not.

    Cheers,
    - Lee

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 16, 2019 @ 10:21
    Lee Kelleher
    100

    I've had a quick look at both v7 and v8 branches of Umbraco core.

    Unfortunately it doesn't do what you wanted, (neither does the dropdown list editor).

  • Philip Hayton 98 posts 435 karma points
    Apr 16, 2019 @ 13:46
    Philip Hayton
    0

    Ah ok no problem, thank you for confirming!

Please Sign in or register to post replies

Write your reply to:

Draft