Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • dageraad Friend
    #730392

    On the view-item page , is it possible to put the item image above the extra fields?

    For example on this page:

    http://tnav.mascomm.be/leden/item/108-packo-pumps-nv

    thanks,

    Michiel

    Ninja Lead Moderator
    #747163

    Hi Michiel,

    Yes, you can move the image into above the extra field

    Open templates/ja_directory/html/com_k2/directory/item.php file

    find and cut


    <?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
    <!-- Item Image -->
    <div class="itemImageBlock">
    <span class="itemImage">
    <a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
    <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
    </a>
    </span>

    <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
    <!-- Image caption -->
    <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
    <?php endif; ?>

    <?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
    <!-- Image credits -->
    <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
    <?php endif; ?>

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

    and paste it like as my screenshot

    Let me know if it helps

    Regards

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

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 9 years, 2 months ago.

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