Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • cantabriadeportiva Friend
    #175673

    Hello,
    This is my website http://www.cantabriadeportiva.es and I would like to change the order in k2 article template.

    I would like to move MEDIA content before RELATED ARTICLES.

    For example:

    http://cantabriadeportiva.es/index.php/home/tercera-division/actualidad/cronicas-y-resultados-2/item/2281-en-directo-buelna-pontejos

    Is it posible????

    Thank you


    1. capturaweb
    khoand Friend
    #446885

    You replace the code from /templates/ja_teline_iv/html/com_k2/templates/Default/item.php

    <?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?>
    <!-- Related items by tag -->
    <div class="itemRelated">
    <h3><?php echo JText::_("Related items (by tag)"); ?></h3>
    <ul>
    <?php foreach($this->relatedItems as $key=>$item): ?>
    <li class="<?php echo ($key%2) ? "odd" : "even"; ?>">
    <a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
    </li>
    <?php endforeach; ?>
    </ul>
    <div class="clr"></div>
    </div>
    <?php endif; ?>

    <div class="clr"></div>

    <?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; ?>

    with


    <?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; ?>
    <?php if($this->item->params->get('itemRelated') && isset($this->relatedItems)): ?>
    <!-- Related items by tag -->
    <div class="itemRelated">
    <h3><?php echo JText::_("Related items (by tag)"); ?></h3>
    <ul>
    <?php foreach($this->relatedItems as $key=>$item): ?>
    <li class="<?php echo ($key%2) ? "odd" : "even"; ?>">
    <a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
    </li>
    <?php endforeach; ?>
    </ul>
    <div class="clr"></div>
    </div>
    <?php endif; ?>

    <div class="clr"></div>

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  khoand 12 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum