Hello Guys,
i have an issue that is going to destroy my mind ... i am not a PHP developer so i can not find any way to solve it...
I am using K2 (v 2.5.7) for CCK (with alotof custom templates) and Joomfish (2.1.7) deployed on a Joomla 1.5.26 installation.
I am using the following code (in my templates) in order to fetch my individual k2 extra fields by name:
$extraFld = array();
if ( $this->item->extra_fields ) {
foreach ( $this->item->extra_fields as $key=>$extraField ) {
$extraFld[ $extraField->name ] = $extraField->value;
}
}
and then i fetch it like this:
echo "<li class=\"dinning-cuisine\"><span>" . JText::_('Cuisine') . "</span><br />" . $extraFld['Cuisine'] . "</li>\n";
The problem is that if i TRANSLATE the extra field Cuisine (to Greek (default) and English) the default language translation DISAPPEARS (see below)
Attachment not found
while the English one works fine!
Attachment not found
Any ideas what is causing this weird behavior??
Please see attached screenshots...