Get Translated Page URL
Permalink
Hello to all,
I have a website with two languages and I need to print on every page the url of its translated page. I have been searching on the discussions here but couldn't figure out how it works.
Could anybody give some advice, how can I get the URL of the mapped german page when an english page loads and vice versa?
Thanks a lot!
I have a website with two languages and I need to print on every page the url of its translated page. I have been searching on the discussions here but couldn't figure out how it works.
Could anybody give some advice, how can I get the URL of the mapped german page when an english page loads and vice versa?
Thanks a lot!
Actually also noticed this helper method from the TranslatedPagesHelper which helps you to get all the related pages for each language for the current page. It's probably what you need:
$relatedList = Loader::helper('translated_pages', 'multilingual')->getTranslatedPages();
Thanks Mainio!!
If you need the list of all multilingual sections on your site:
And if you need the current section: