I'm using the latest versions of joomla and k2.
When i use the view of items by tag i can´t display the attachment links to the files associated to the item like in the category view:
- Code: Select all
<?php foreach ($this->item->attachments as $attachment): ?>
<a style="padding-left: 18px;" title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" target="_blank" href="<?php echo $attachment->link; ?>#zoom=100">Programa completo
<?php //echo $attachment->title ; ?>
</a>
<?php if($this->item->params->get('catItemAttachmentsCounter')): ?>
<span>(<?php echo $attachment->hits; ?> <?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>
<?php endif; ?>
<?php endforeach; ?>
it returns no link, i think it can be because of the DB query.
hope someone can help me,
thanks in advance