Lunar New Year 2020 Sale: 35% Off Storewide & Get 50% Off Coupon on 2nd Order!
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
× IMPORTANT! Vietnam Lunar New Year is all around here! We will have a long vacation (23rd - 30th Jan, 2020), therefore there will be some delays in our response. We'll try to answer you as soon as possible, especially in urgent cases. We will resume to normal on Jan 31st, 2020. Thank you!

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

We do not work from 2020-01-23 to 2020-01-30.

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

Welcome, Guest
  • Page:
  • 1

TOPIC: Attachment

Attachment 7 years, 3 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, 3 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.42 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.
Lunar New Year 2020 Sale: 35% Off Storewide & Get 50% Off Coupon on Second Order

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