Module

Developer
Supported

AJ Language

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Andrew Jones

     

You must be logged in to post.

support for custom fields?

Support Request

Arif
Arif

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
# 1
Developer
andrewjonesdev

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}