Copied to clipboard

Flag this post as spam?

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


  • Dennis Milandt 190 posts 517 karma points
    May 25, 2009 @ 18:27
    Dennis Milandt
    0

    Using dictionary items in Property names

    I was under the impression that you could use dictionary items in your document type property names and document type tabs.

    If you named your property "#pageTitle" it would lookup "pageTitle" in the dictionary for the selected language for that user in umbraco back office.

    Is this supposed to work? - can I accomplish this another way? - or is this not a feature in umbraco at all?

    When I prepend a tab or property with # umbraco throws an error when viewing that item in umbraco afterwards. "Value cannot be null. Parameter name: value".

    Kind regards
    Dennis Milandt

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    May 26, 2009 @ 12:17
    Ismail Mayat
    0

    milandt,

    I think you are confusing this with short cuts in templates. So in a template you can pass into a macro the current document property eg:

    [code]

    [/code]

    or any other property for that matter however this only works (least i think it does) for templates not document property or tab alias.

    Regards

    Ismail

  • Dennis Milandt 190 posts 517 karma points
    May 26, 2009 @ 12:33
    Dennis Milandt
    0

    I was aware of the shortcuts in templates, but I just seem to remember something about localizing the names and descriptions for Document Type Properties as well.

    If that's not possible, it might be something to consider for a new feature.

  • Comment author was deleted

    May 26, 2009 @ 12:55

    it is possible, @milandt what version are you using ?

  • Dennis Milandt 190 posts 517 karma points
    Jun 23, 2009 @ 16:33
    Dennis Milandt
    0

    I am using version 4. How is it possible?

  • Petr Snobelt 923 posts 1535 karma points
    Sep 22, 2009 @ 09:50
    Petr Snobelt
    0

    @tim: I also try it without luck, if it works for you, write small howto article, please.

    A also create codeplex item for it, because it's something what I really love to have (hope in 4.0.3)
    http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=24693

    Thank you

  • Dennis Milandt 190 posts 517 karma points
    Dec 16, 2009 @ 13:45
    Dennis Milandt
    0

    @tim, I would also love to know how you managed to get this to work :-)

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    May 14, 2010 @ 00:06
    Niels Hartvig
    1

    It requires that the locale of the language matches the language of the user. Ie. English (UK) is not the same as English (US). In v4.0.3 and previous an exception would be cast if the language wasn't found.

    I've just fixed this bug (in the rb403 branch) and it'll be a part of 4.0.4

Please Sign in or register to post replies

Write your reply to:

Draft