I am brand new with K2. It is my first site with K2 - Joomla! 3.2.1
I want to display the value from an extrafield next to the title in both item.php and categoy_item.php. I have created a sub template with other changes that works.
I have tried adding the codes below but as you can see in the attached pictures, only Kr. is displayed when I use the first code. When I use the other, you see nothing - what am I doing wrong? :huh:
<span class="catItemPrice">Kr.
<?php echo $this->item->extraFields->pricefield->value; ?></span>
<?php if(isset($this->item->extraFields->pricefield->value)): ?>
<span class="catItemPrice">Kr.
<?php echo $this->item->extraFields->pricefield->value; ?></span>
<?php endif; ?>
I've tried to add images, but it dosn't work :huh: (firefox)
Works in Crome
I want to display the value from an extrafield next to the title in both item.php and categoy_item.php. I have created a sub template with other changes that works.
I have tried adding the codes below but as you can see in the attached pictures, only Kr. is displayed when I use the first code. When I use the other, you see nothing - what am I doing wrong? :huh:
<span class="catItemPrice">Kr.
<?php echo $this->item->extraFields->pricefield->value; ?></span>
<?php if(isset($this->item->extraFields->pricefield->value)): ?>
<span class="catItemPrice">Kr.
<?php echo $this->item->extraFields->pricefield->value; ?></span>
<?php endif; ?>
I've tried to add images, but it dosn't work :huh: (firefox)
Works in Crome