Get Umbraco Certified in October

5 courses in 4 different countries across 2 continents leaves no excuse.

Attend courses in the Netherlands, UK, USA and at Umbraco HQ in Denmark.

See the schedule and read more about our training here.

Copied to clipboard

Flag this post as spam?

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

  • K.Garrein 86 posts 268 karma points
    Mar 11, 2011 @ 12:51



    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 :)

    @{ string lang = "NL"; }
    @item.GetProperty( "Content_" + lang ).Value

    How do I get the Content_XX property that I need?

    Thank you.

  • K.Garrein268 karma points
    Mar 11, 2011 @ 13:15

    Maybe I shouldn't post so fast :)

    This does the trick:

    @{ string lang = "NL"; }
    @item.Properties["Titel_" + lang]


  • Sebastiaan Janssen9489 karma points admin mvp hq
    Mar 11, 2011 @ 17:07
    Sebastiaan Janssen

    What didn't work in the first case? I've just ran the code and it gives me a perfect result!

Please Sign in or register to post replies

Write your reply to:

Draft is the community mothership for Umbraco, the open source cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0