Language url and variables

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
KarmicSynergy
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Mar 31, 2019 3:29 pm

Language url and variables

Post by KarmicSynergy » Sun Mar 31, 2019 5:09 pm

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

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18852
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Language url and variables

Post by infograf768 » Mon Apr 01, 2019 4:32 am

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?
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

KarmicSynergy
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Mar 31, 2019 3:29 pm

Re: Language url and variables

Post by KarmicSynergy » Mon Apr 01, 2019 3:04 pm

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

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18852
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Language url and variables

Post by infograf768 » Tue Apr 02, 2019 7:44 am

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.
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

KarmicSynergy
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Mar 31, 2019 3:29 pm

Re: Language url and variables

Post by KarmicSynergy » Wed Apr 03, 2019 1:50 pm

thanks ill take a look


Post Reply

Return to “Language - Joomla! 3.x”