Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest
  • Page:
  • 1

TOPIC: Attachment

Attachment 12 years, 1 month 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 12 years, 1 month 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.20 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.

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
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes