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".
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.
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
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
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
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
it is possible, @milandt what version are you using ?
I am using version 4. How is it possible?
@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
@tim, I would also love to know how you managed to get this to work :-)
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
is working on a reply...