Page 1 of 1

Language url and variables

Posted: Sun Mar 31, 2019 5:09 pm
by KarmicSynergy
not sure if this has been asked before but i cant find it

i want to use a custom link to change the current page to the associated page, is there anyway to get the linked article url using javascript or php

Re: Language url and variables

Posted: Mon Apr 01, 2019 4:32 am
by infograf768
What is the current page displaying?
How is it associated? Is it by a menu item or by article item association?
Is the Language Switcher module displayed on these pages?

Where do you want to display the linked article url (as it looks like you do not want to use the switcher) ?
Is it in the text area of the article displayed in the current page, in its infoblock or elsewhere?

Re: Language url and variables

Posted: Mon Apr 01, 2019 3:04 pm
by KarmicSynergy
hi
the pages are currently loading in English as it meant to and the Language Switcher module works fine and i have article item association i used JA Multilingual (should of said in original post)

i want a custom language switcher and to have it in the article, im looking to get the url or the associated page in Welsh (thats the other languages) in a variable to give me the freedom to use in many places

i hope that makes sense

Re: Language url and variables

Posted: Tue Apr 02, 2019 7:44 am
by infograf768
I think JA Multilingual is using the core Items Associations.
If you need to switch INSIDE the article (would only work correctly if the article is associated to an article tagged to each content language), then just create an instance of the Language switcher tagged to All languages and assigned to a custom position (below "myswitcher"). Set Active Language to No.
Then add in the article {loadposition myswitcher}

The article will display the switcher.
Screen Shot 2019-04-02 at 09.41.10.png
It's the easiest way.

Re: Language url and variables

Posted: Wed Apr 03, 2019 1:50 pm
by KarmicSynergy
thanks ill take a look