AJ Language
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Andrew Jones
support for custom fields?
Support Request
Arif
|
Posted: 19 January 2013 06:09 AM |
|
|
|
Does this addon has support for multilanguage custom field?
So when you have 3 custom fields:
- title_en
- title_es
- title_fr
Can you display the title form current language?
cheers
|
|
|
andrewjonesdev
|
Posted: 20 January 2013 05:21 AM |
# 1
|
|
Developer
|
Hi,
Yes you can. Once you set up a new language, in your root folder you’ll find a folder for your language e.g. “es”. If you open the index.php file it creates you, there are global variables registered in there for languages such as:
language_prefix
language_suffix
language
etc.
So you would just use these variables in your template - {title{language_suffix}} - and it will convert it to {title_es}
|
|
|