Developer forum

Forum » CMS - Standard features » Link to corresponding language version of current page

Link to corresponding language version of current page

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

Is it possible somehow to link to corresponding language version of the current page?

eg. If i have a page in Danish, I want to automatically link to the English version of that specific page - and not just link to the English frontpage.

 

Is this possible somehow? Of course I donĀ“t want to type the links in manually, so it has to be a sort of:

if exist, always link to language version of same page. If not, link to frontpage.

 

br.

Hans

 

 


Replies

 
Nicolai Pedersen
Reply

You can use the website languages loop:

http://doc.dynamicweb.com/template-tags/content/content/pages#WebsiteLanguages

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Ok, but I see this does not make it possible to link to corresponding page, but only to link to first active page or first page. Is this correct?

I was hoping to be able to link directly to the same specific page, only in another language.

 
Nicolai Pedersen
Reply

Ah, there is a similar loop for the pages - called "Languages"

BR Nicolai

 

You must be logged in to post in the forum