Re: Permalinks plugin and multi language website
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: August 26, 2014 (RSS)
By andybarn - August 21, 2014
In response to: [url "http://www.interactivetools.com/forum/forum-posts.php?postNum=2232841#post2232841"]Permalinks plugin and multi language website[/url], ...
Hi
I have the same problem with a property website, but do not understand the solution regarding creating a secondary section (or record) for records in another language. Please could you elaborate.
At the moment, I have created several fields in my listings section, examples are:-
Field Label Field Name
Summary summary
Summary - French summary_fr
Description description
Description - French description_fr
When I display the pages, I display the English fields for the English section of the Website and the French fields for the French section.
My permalink is in English and is working great - however I need to have a French version of the permalink for the French pages.
Is there anyway this can be achieved, either using the permalink plugin or manually creating a field to be used for the French version of the permalink?
Your help appreciated.
Thanks
Andy
Hi Andy,
Unfortunately there isn't a way a you can create two permalinks for the same record without heavy modification of the plugin.
So the best solution is to either store the two different language records in different sections. For example you could have a section called news_fr and news. Only news in french would go in the news_fr section, while news in English would go in the news section. You could then load the different sections depending on what language the user has selected, and have one permalink for each record.
The second option is to store all of the English and French records in the same section, but have a drop down that decides if the record is English or French:
Field Label Field Name
Language language (list field with French and English options)
Summary summary
Description description
You'd then use the language option to filter what record are displayed for particular users.
Let me know if you have any questions.
Cheers,
Greg
PHP Programmer - interactivetools.com