Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey,
I have a multilingual site.
I have 3 properties in a document type:1. Content_NL2. Content_FR3. Content_EN
Now I wish to get the language-specific Content.I tried the following, but it doesn't do the trick :)
@{ string lang = "NL"; }@item.GetProperty( "Content_" + lang ).Value
How do I get the Content_XX property that I need?
Thank you.Kris.
Maybe I shouldn't post so fast :)
This does the trick:
@{ string lang = "NL"; }@item.Properties["Titel_" + lang]
Regards.K.
What didn't work in the first case? I've just ran the code and it gives me a perfect result!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
GetProperty
Hey,
I have a multilingual site.
I have 3 properties in a document type:
1. Content_NL
2. Content_FR
3. Content_EN
Now I wish to get the language-specific Content.
I tried the following, but it doesn't do the trick :)
How do I get the Content_XX property that I need?
Thank you.
Kris.
Maybe I shouldn't post so fast :)
This does the trick:
Regards.
K.
What didn't work in the first case? I've just ran the code and it gives me a perfect result!
is working on a reply...