Joomla K2 CCK how to fetch specific extra field selected value at administrator item template - Joomla! Forum - community, help and support
i trying make customizations in my:
administrator\components\com_k2\views\item\tmpl\default.php
file , print somewhere item's field selected values.
in file's code can see can field name , element like:
however "$extrafield->value" not seem work. it
i have tried access item's field values using:
but "$item->extra_fields" not seem work @ administrator item.php template of k2.
any suggestions?
administrator\components\com_k2\views\item\tmpl\default.php
file , print somewhere item's field selected values.
in file's code can see can field name , element like:
code: select all
<?php if (count($this->extrafields)): ?>
<?php foreach($this->extrafields $extrafield): ?>
<?php echo $extrafield->name; ?>
<?php echo $extrafield->element; ?>
<?php endforeach; ?>
<?php endif; ?>
however "$extrafield->value" not seem work. it
i have tried access item's field values using:
code: select all
$extrafields = array();
foreach($item->extra_fields $item)
{
$extrafields[$item->id] = $item->value;
}
but "$item->extra_fields" not seem work @ administrator item.php template of k2.
any suggestions?
Comments
Post a Comment