Support will be in summer mood from 6-17 August, 2018 while the JoomlaWorks folks get some rest.
Keyword

K2 Extra Fields and FaLang

More
6 months 1 week ago #166527 by Leon
Leon created the topic: K2 Extra Fields and FaLang
Hello!

I was searching for a tool that would enable me to translate my Multi-Lingual site's K2 Extra Fields and I read a lot about the FaLang tool, however I got a problem.

I use this code in my PHP to call my K2 Extra Fields:
$this->item->extraFields->pais->value
Where "pais" is my extra field Alias.

Whenever I do this, in my original language page (portuguese), I get the expected results, a list of countries. I used VAR_DUMP to get the info.
<?php var_dump($this->item->extraFields->pais->value); ?>

//Results
string(40) "Brasil, Estados Unidos, Canadá, México"

If I do the same in my site, but in a different language (Spanish or English), I get nothing. If I use VAR_DUMP, it returns: NULL.

May anyone help me please?

Please Log in or Create an account to join the conversation.

More
6 months 6 days ago #166655 by Krikor Boghossian
Krikor Boghossian replied the topic: K2 Extra Fields and FaLang
Hello Falang states that a specific K2 plugin is also needed for the translation of extrafields.
Have you installed this plugin?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

Moderators: william white