Keyword

Attachments Not Showing in Items

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 11 months ago - 6 years 11 months ago #165988 by Gorast
Attachments Not Showing in Items was created by Gorast
Hi,
I have no idea why attachments are not showind within items.
I see the code:
<div class="itemLinks">
  <?php if($params->get('itemAttachments') && count($this->item->attachments)): ?>
  <div class="itemAttachmentsBlock"> <span><?php echo JText::_('K2_DOWNLOAD_ATTACHMENTS'); ?></span>
	<ul class="itemAttachments">
	  <?php foreach ($this->item->attachments as $attachment): ?>
	  <li> <a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>"><?php echo $attachment->title; ?>
			<?php if($params->get('itemAttachmentsCounter')): ?>
			<span>(<?php echo $attachment->hits; ?> <?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>
			<?php endif; ?>
			</a> </li>
	  <?php endforeach; ?>
	</ul>
  </div>
  <?php endif; ?>
  <?php if($params->get('itemTags') && count($this->item->tags)): ?>
  <div class="itemTagsBlock"> <span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span>
	<ul class="itemTags">
			  <?php foreach ($this->item->tags as $tag): ?>
			  <li> <a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a> </li>
			  <?php endforeach; ?>
	</ul>
  </div>
  <?php endif; ?>
</div>
<?php endif; ?>

and I have set everything in the category item view to SHOW but still, no attachment showing in the item.
Any suggestions where should I search for the problem?

Here is the url: mnt.mk/mk/za-mnt/mnt/zavrshna-smetka

Tnx,
G
Last edit: 6 years 11 months ago by Gorast.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 11 months ago #166022 by Krikor Boghossian
Replied by Krikor Boghossian on topic Attachments Not Showing in Items
mnt.mk/mk/za-mnt/mnt/zavrshna-smetka?template=protostar
This indicates a template issue.
Can you c/p the code from the default template?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 11 months ago #166026 by Gorast
Replied by Gorast on topic Attachments Not Showing in Items
Here is the code from item.php from components/com_k2/templates/default - pastebin.com/x3HQiHDY

Here is the code from item.php from /public_html/templates/gk_game/html/com_k2/templates/sodrzina, the one I'm having problems - pastebin.com/4MJWDCNp

Thanks! :D

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 11 months ago #166042 by Krikor Boghossian
Replied by Krikor Boghossian on topic Attachments Not Showing in Items
Hello,

Since this is a commercial template from Gavick, you need to address this issue to the template's developers.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum