- Notifications
You must be signed in to change notification settings - Fork0
This plugin is based on the core languagefilter plugin and adds the feature of using multiple sef language tag in the url associated with the same language internally.
License
alexandreelise/plg_system_compoundlanguagefilter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This plugin is based on the core languagefilter plugin and adds the feature of using multiple sef language tagin the url associated with the same language internally.
__ __ ____ _____ __ __ / / / ___ / / ____ / ___/__ ______ ___ _____ / ____ ____ ____ ___ / ___ __________ / /_/ / _ \/ / / __ \ \__ \/ / / / __ \/ _ \/ ___/ __ / / __ \/ __ \/ __ `__ \/ / _ \/ ___/ ___/ / __ / __/ / / /_/ / ___/ / /_/ / /_/ / __/ / / /_/ / /_/ / /_/ / / / / / / / __/ / (__ ) /_/ /_/\___/_/_/\____/ /____/\__,_/ .___/\___/_/ \____/\____/\____/_/ /_/ /_/_/\___/_/ /____/ /_/
HOW IT WORKS:This plugin is an enhancement of the language filter plugin. It enables the possibility to haveone to many relationships from one source language to any other "virtual languages". I call them virtual languagesbecause they are actually not installed in Joomla!. What I did to achieve this is to leverage the power of the Joomla!subforms and use part of the com_languages form from the admin area and add to it what I called the "source_language".The source_language is a standard form field from Joomla! which list the installed languages of the "Frontend"part of Joomla!.
The website I built to reproduce the use case is a multilingual website with 4 languages French, English,Spanish and German.
In order to use the name of the country rather than the language name we can simply change the title of thelanguage and/or the native title accordingly. Moreover, I added the possibilty to choose the "virtual languages" and theinstalled languages from the mod_languages module which Helper class has been dynamically replaced by another one by mysystem plugin so as to have this custom functionnality.
By merging the subform results and the installed languages result using Joomla! Registry . It allows a powerful tool toaddress this use case.
With all this you are now able to do as you describe.
NOTE: This implementation also changes the website to be multilingual for either "virtual languages" andinstalled languages.
Just one side note:The url of type /ar changes the active menu item to Spain and the content is in Spanishbut the menu item doesn't stay on Argentina(I think you can get around that but I didn't have much time to answer your question)
INSTRUCTIONS:
This Joomla! plugin source code is in the src/ directory of this zip fileThe final extension is in the build/ directoryIf you want to build the extension yourself, make sure you have make utility on your machine.It is generally provided by default on linux and macOS machines maybe not on Windows.Once you have make installed.You can type in your terminal: (you must be in the directory on the Makefile)
make gen
The Makefile rule will check if the php files has no syntax errors and create a zip file tagged by the current datetimein the build/ directory.
If you don't want to bother doing this. Just install the already built extension from the build/ directory
The Akeeba backup of the reproductible dev environment is in the backup/ directory.
English:Click here to get in touch
Français:Cliquez ici pour me contacter
About
This plugin is based on the core languagefilter plugin and adds the feature of using multiple sef language tag in the url associated with the same language internally.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.