Keyword

Including media on tags page

  • Kristen Gardner
  • Kristen Gardner's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #135272 by Kristen Gardner
Including media on tags page was created by Kristen Gardner
Hello,
I would like to include a media file (a video) at the top of all my k2 items. However, when k2 shows me a list of items that belong to a particular tag, the media does not show unless I click to enter the particular item page. I have tried editing the template, and I add this to templates/default/tag.php:
<div class="latestItemVideoBlock">
<h3><?php echo JText::_('K2_RELATED_VIDEO'); ?></h3>
<span class="latestItemVideo<?php if($this->item->videoType=='embedded'): ?> embedded<?php endif; ?>"><?php echo $this->item->video; ?></span>
</div>


However, nothing at all appears. It seems something else is missing elsewhere. Could someone give me a hand?

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

More
9 years 9 months ago #135316 by Lefteris
Replied by Lefteris on topic Including media on tags page
Hi. If it will be the same media for all pages you should consider using a module. If you just want to show the item's video in tags page, then unfortunately this is cannot be done. In K2 parameters you can find options for the elements you can show/hide in the tags page.

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