Keyword

K2 Extra Fields and FaLang

More
7 years 3 months ago #166527 by Leon
K2 Extra Fields and FaLang was created by Leon
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.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 3 months ago #166655 by Krikor Boghossian
Replied by Krikor Boghossian on 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?

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


Powered by Kunena Forum