test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Mo0nlight Moderator
    #966246

    Hi.

    Hide image settings still working fine in our demo.

    Please post your url and admin, ftp account in private mode.
    I’ll check your site further.

    Regards.

    turytrip Friend
    #966293
    This reply has been marked as private.
    Mo0nlight Moderator
    #966604

    Hi.

    i had checked your code.

    The file : /components/com_k2/templates/ja_k2filter/item.php

    Code :

          <!-- K2 Plugins: K2BeforeDisplayContent -->
          <?php echo $this->item->event->K2BeforeDisplayContent; ?>
    
    <img src="<?php echo $this->item->image; ?>" alt="<?php $this->item->image_caption; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
    
          <?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>

    It’s because the standalone line :

    <img src="<?php echo $this->item->image; ?>" alt="<?php $this->item->image_caption; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />

    The image always shows up.

    I moved this line.

    Regards

    turytrip Friend
    #966646

    Perfect…now it’s ok
    Thanks!

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

This topic contains 4 replies, has 2 voices, and was last updated by  turytrip 8 years, 2 months ago.

The topic ‘hide image on item content’ is closed to new replies.