Change order K2 additional field and video

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Oct 31, 2013 8:12 am
Reply with quote
Report this post
Hello,

Is there a solution to change the order of K2 "fields".

Now its:
- article,
- additional fields,
- mare articles made by,
- similar as,
- media.

But I want media right under the article and followed by additional fields.

I hope you understand what I am saying. Thank you.
User avatar
Senior Boarder

GK User
Thu Oct 31, 2013 10:56 am
Reply with quote
Report this post
Probably yes but it is related with changes in K2 item view. Single K2 article view you will find in template/html/com_k2/templates/default/item.php

Then probably you need to change order of video code :

Code: Select all
 <?php if($this->item->params->get('itemVideo') && !empty($this->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>
       <?php endif; ?>


and move it right after displayed content. Due to fact that K2 is 3rd party extension beyond our support more help you will probably get on official K2 support forum.
User avatar
Platinum Boarder


cron