Keyword

Move related videos just under copy

  • Jaime Steele
  • Jaime Steele's Avatar Topic Author
  • Offline
  • New Member
More
13 years 7 months ago #93622 by Jaime Steele
Move related videos just under copy was created by Jaime Steele
Is this possible?Many thanks

 

jaime 

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

More
13 years 7 months ago #93623 by Terry Britton
Replied by Terry Britton on topic Move related videos just under copy
Not nearly enough info for someone to help you.  Do you mean related items based on tags? When you say copy, do you mean introtext, fulltext or something else? Because by default the related items does show up after the fulltext.

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

More
13 years 7 months ago #93624 by Simon Wells
Replied by Simon Wells on topic Move related videos just under copy
Jaime,For anyone to be able to provide any support to you, we are going to need more information.

Simon K2 Support 

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

  • Jaime Steele
  • Jaime Steele's Avatar Topic Author
  • Offline
  • New Member
More
13 years 7 months ago #93625 by Jaime Steele
Replied by Jaime Steele on topic Move related videos just under copy
Apologies guys

skitch.com/jaimesteele/rpy4k/pruning-vines-at-domaine-sainte-rose - you can see here that the main article image is at the top, there's a bit of copy below it, I'd like to move the video that's at the bottom up to above the read count.

Many thanks

J


Simon Wells (K2 Support) said:Jaime,For anyone to be able to provide any support to you, we are going to need more information.

Simon K2 Support 

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

More
13 years 7 months ago #93626 by Terry Britton
Replied by Terry Britton on topic Move related videos just under copy
First setup template overrides if you haven't already.  Then in item.php move the following portion (lines 454 to 479) to line 287.  Line numbers relate to an unmodified item.php.  Backup your files before attempting.

 

  <?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::_('Related Video'); ?></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; ?>

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


Powered by Kunena Forum