Hi,
I would like to add a "back to category {categoryname}" link above my item titles. Does anybody know how this works?
I tried to add some code to the item.php of my template of K2, but I don't see anything.
I addes this:
Thanks in advance for your help!
I would like to add a "back to category {categoryname}" link above my item titles. Does anybody know how this works?
I tried to add some code to the item.php of my template of K2, but I don't see anything.
I addes this:
Before this:<!-- Item category to go back to category overview -->
<div class="itemCategory">
<span><?php echo JText::_('Back to category: '); ?></span>
<a href="<?php echo $this->item->category->link; ?>"><?php echo $this->item->category->name; ?></a>
test
</div>
<?php if(!empty($this->item->fulltext)): ?>
<?php if($this->item->params->get('itemIntroText')): ?>
<!-- Item introtext -->
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
Thanks in advance for your help!