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:

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

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support