I think that you have to upgrade to 8.1.1 (i am not 100% sure of the version) in order to do Model.Name("da-dk") and Model.Url("da-dk", UrlMode.Absolute)
I spend out trying to figure out something similar. I have a website in both Dutch and English and each page is Multilanguage. On the Dutch pages I want to automatically include the link to the English version and visa versa.
@Model.Url("nl", UrlMode.Absolute)
@Model.Url("en-us", UrlMode.Absolute)
This worked for me, hopes this helps you, good luck!
How to get Name or Url of an IPublishedContent with a specific culture?
I want to know how to get the Url or Name of an IPublishedContent with a specific culture.
For example, you can get a property value of a specific culture like this
But i cant get the Name or Url of the IPublishedContent because they are properties and dont have any CultureInfo argument that i can pass in.
Anyone know how to do it?
Thanks in advance
Hi Danny.
I think that you have to upgrade to 8.1.1 (i am not 100% sure of the version) in order to do
Model.Name("da-dk")
andModel.Url("da-dk", UrlMode.Absolute)
Dear Danny,
I spend out trying to figure out something similar. I have a website in both Dutch and English and each page is Multilanguage. On the Dutch pages I want to automatically include the link to the English version and visa versa.
@Model.Url("nl", UrlMode.Absolute)
@Model.Url("en-us", UrlMode.Absolute)
This worked for me, hopes this helps you, good luck!
Regards, Patrick
Thanks, it worked! :)
One note is that you must declare these namespaces, otherwise they wont appear
is working on a reply...