Keyword

Move Media (Allvideos) box up below content

  • Nick Lauren
  • Nick Lauren's Avatar Topic Author
  • Offline
  • New Member
More
9 years 2 months ago #146123 by Nick Lauren
Move Media (Allvideos) box up below content was created by Nick Lauren
Hey guys,

Is there a way (hopefully an easy one) way to move the allvideos media box higher to be above "The Latest" and the author box, etc to be right below the content? That way I don't have to tell people to scroll down to watch a video?

Any help is greatly appreciated!

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

More
9 years 2 months ago #146128 by Joe Campbell
Replied by Joe Campbell on topic Move Media (Allvideos) box up below content
Hello Nick,

Sounds like you will need to create a template override for your current template and move the video code above the sections that you desire.

Here are a few resources on K2 Template Overriding:
www.youtube.com/watch?t=229&v=vprpuc5pLHI
www.joomlaworks.net/blog/item/194-k2-inheritance-sub-templating
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
www.gavick.com/blog/power-custom-k2-templates

Below is a sample of the block of code that you should looking to move:
  <?php if($this->item->params->get('itemVideo') && !empty($this->item->video)): ?>
  <!-- Item video -->
  <a name="itemVideoAnchor" id="itemVideoAnchor"></a>

  <div class="itemVideoBlock">
  	<h3><?php echo JText::_('K2_MEDIA'); ?></h3>

		<?php if($this->item->videoType=='embedded'): ?>
		<div class="itemVideoEmbedded">
			<?php echo $this->item->video; ?>
		</div>
		<?php else: ?>
		<span class="itemVideo"><?php echo $this->item->video; ?></span>
		<?php endif; ?>

	  <?php if($this->item->params->get('itemVideoCaption') && !empty($this->item->video_caption)): ?>
	  <span class="itemVideoCaption"><?php echo $this->item->video_caption; ?></span>
	  <?php endif; ?>

	  <?php if($this->item->params->get('itemVideoCredits') && !empty($this->item->video_credits)): ?>
	  <span class="itemVideoCredits"><?php echo $this->item->video_credits; ?></span>
	  <?php endif; ?>

	  <div class="clr"></div>
  </div>
  <?php endif; ?>

I hope this helps,

Joe Campbell

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


Powered by Kunena Forum