0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest
  • Page:
  • 1

TOPIC: Attachment

Attachment 7 years, 2 months ago #4944

Dear All,

I am testing the WorldNews template before adopting it for my website.

I have added an attachment to this article, but it does not show up:

- sjwn25.csn2011go.com/index.php/k2-component/k2-pages/k2-categories/business/item/195-a-single-caribbean-sports-academy-to-ensure-future-world-champions

Can some help me with this?

I thank you in advance.

Sunny regards,

Willem

Re: Attachment 7 years, 2 months ago #4951

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Willem S.A. Da Costa Gomez,

Please go to "your_site/templates/sj_worldnews/html/com_k2/templates/yt-theme/item.php", finding:


<?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?>
	<!-- 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 class="clr"></div>
	</div>
<?php endif; ?>


change to

<?php if($this->item->params->get('itemTags') && count($this->item->tags)): ?>
	<!-- 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 class="clr"></div>
	</div>
	<?php endif; ?>
	<?php if($this->item->params->get('itemAttachments') && count($this->item->attachments)): ?>
	  <!-- 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; ?></a>
			    <?php if($this->item->params->get('itemAttachmentsCounter')): ?>
			    <span>(<?php echo $attachment->hits; ?> <?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>
			    <?php endif; ?>
		    </li>
		    <?php endforeach; ?>
		  </ul>
	  </div>
    <?php endif; ?>



Thanks
Ticket System | Join our Clubs to download our extensions and templates
The following user(s) said Thank You: CSN2011
  • Page:
  • 1
Time to create page: 0.36 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes