I have posted the following on the BT-Content-Slider forum as well. However I feel the piece I am missing is more to do with K2 and me not understanding how to call the field into the module.
I have used the following code in the category_item.php file with success, but when taken to this 3rd party module then it does not work.
So, where am I going wrong? I have looked at a lot of forum entries "nearly" describing this, but no answer. I really hope somebody has succeeded at something like this and can help me.
I have used the following code in the category_item.php file with success, but when taken to this 3rd party module then it does not work.
<?php if($this->item->params->get('catItemExtraFields') && count($this->item->extra_fields)): ?>
<!-- Item extra fields -->
<div class="catItemExtraFields">
<?php $custom = $this->item->extra_fields; ?>
<ul>
<li>
<span style="font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;font-weight: normal;font-size:11px;"><?php echo ($custom[0]->type=='date')?JHTML::_('date', $custom[0]->value, JText::_('K2_DATE_FORMAT_LC')):$custom[0]->value; ?> from <?php echo $custom[1]->value; ?></span>
</li>
</ul> <div class="clr"></div>
</div>
<?php endif; ?>So, where am I going wrong? I have looked at a lot of forum entries "nearly" describing this, but no answer. I really hope somebody has succeeded at something like this and can help me.