I have a text in a textfield that i want to replace with a dictrionary item. The Node is placed outside of the Languages root nodes but is retrieved inside them.
Im using a usercontrol that just get the text from the textfield in the node. i suppose that is not the correct way. The problem is that the text inside the textfield could be changed.
I would like to do exactly like in contour where i put a # in front of the the text and it automatically gets the dictionary item.
If you're fetching the content using a XSLT macro you can use the umbraco.library.GetDictionaryItem(); extension to get the labels in different languages.
Did you add more languages under the languages folder?
And did you create some dictionary items to translate your properties? I guess you're missing the translation of the properties since they do not display.
Replace text from node with dictionary
Hi!
I have a text in a textfield that i want to replace with a dictrionary item. The Node is placed outside of the Languages root nodes but is retrieved inside them.
Is it possible to solve that?
Hi froad
How are you trying to fetch them now? Do you have some code for this you have tried out already?
/Jan
Im using a usercontrol that just get the text from the textfield in the node. i suppose that is not the correct way. The problem is that the text inside the textfield could be changed.
I would like to do exactly like in contour where i put a # in front of the the text and it automatically gets the dictionary item.
Solved it!
I did like this in my usercontrol:
Hi,
I am creating multi language site. Can it possible to display labels of content field from dictionary?
Would it possible to do some thing like contour where i put a # in front of the the text and it automatically gets the dictionary item.
Thanks
Amna
Hi Anna
If you're fetching the content using a XSLT macro you can use the umbraco.library.GetDictionaryItem(); extension to get the labels in different languages.
Does this help?
/Jan
Hi Jan,
I have attacted image. Can it is possible?
Amna
Hi Amna,
Yes you can use that. Just use the prefix # on the fieldname in your document type.
Cheers,
Richard
Hi Richard,
I used the prefix # on the fieldname in document type but it is not displaying properly in content page.
Amna
Hi Amna
Did you add more languages under the languages folder?
And did you create some dictionary items to translate your properties? I guess you're missing the translation of the properties since they do not display.
try having a look at Douglas Robars walk-through of Umbraco tricks in this slide http://www.umbracoukfestival.co.uk/media/676/did%20you%20know%20-%20umbraco%20uk%20festival.pdf - go to page 33-36 where he shows how to set this up.
Hope this helps.
/Jan
Thanks Jan...
is working on a reply...