Setting within a K2 article to disable image popup?
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Thu May 02, 2013 5:35 pm
- Reply with quote
- Report this post
Is there a setting to disable image pop up for the main article image on a per article basis? For some images, we'd want this feature; for other images, it isn't necessary and may highlight a lower quality image.
we're using K2.
have looked but haven't found it as yet.
Thank you.
we're using K2.
have looked but haven't found it as yet.
Thank you.
-
- Fresh Boarder
- GK User
- Thu May 02, 2013 7:59 pm
- Reply with quote
- Report this post
Hi, this is "feature" of K2 not came from our templates.
I also struggled with this.
You have to create another copy of K2 template and edit of one the files to cut it off.
Then add this template to those category where do you don't need this effect.
I also struggled with this.
You have to create another copy of K2 template and edit of one the files to cut it off.
Then add this template to those category where do you don't need this effect.
-
- Platinum Boarder
- GK User
- Thu May 02, 2013 8:01 pm
- Reply with quote
- Report this post
p.s.
Search here: gk_publisher\html\com_k2\templates
Search here: gk_publisher\html\com_k2\templates
-
- Platinum Boarder
- GK User
- Fri May 03, 2013 10:27 am
- Reply with quote
- Report this post
thank you. once I have created a second template, is there a setting to change it by article? or do I have to build that logic into the template?
normally there is a field to select a template, but I am not seeing it with the K2 setup.
thanks much
normally there is a field to select a template, but I am not seeing it with the K2 setup.
thanks much
-
- Fresh Boarder
- GK User
- Thu Jun 27, 2013 12:11 am
- Reply with quote
- Report this post
Maybe help.
Hi Jose orlando de lima,
When you click on the front end image added by "images",
inside your template we have something like:
<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>
You can just remove the AHref tag. ex.:
<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;" />
Best Regards
Source: http://getk2.org/community/New-to-K2-As ... ache-on-K2
Hi Jose orlando de lima,
When you click on the front end image added by "images",
inside your template we have something like:
<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>
You can just remove the AHref tag. ex.:
<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;" />
Best Regards
Source: http://getk2.org/community/New-to-K2-As ... ache-on-K2
-
- Senior Boarder
- GK User
- Thu Jun 27, 2013 12:13 am
- Reply with quote
- Report this post
Question
Thanks Jean
It is possible to disable the pop up images.
I removed all images of articles K2, and zero cache again, now I'll use your tip.
Only e.g.
Before images with K2
Backed up with Akeeba - 119 mb
After images without K2
Backed up with Akeeba - 20 mb
thanks for the tip after I post the result
Answers
Hi Jose orlando de lima,
I don't know if it's possible to fix a size of the cache folder but..
in this directory.. it's all image that you use in K2 gallery and K2 image.
to reduce size, you can go in the K2 Parameters, tab Image and reduce the Quality (%) used when processing images.
You can also reduce width of item image that you don't use the size...
if you don't used medium image... you may put 1 in px example...
but if you do this... it's possible that the current images on your website will not be processed but the future ones should be.
Best regards
Source http://getk2.org/community/New-to-K2-As ... ache-on-K2
Thanks Jean
It is possible to disable the pop up images.
I removed all images of articles K2, and zero cache again, now I'll use your tip.
Only e.g.
Before images with K2
Backed up with Akeeba - 119 mb
After images without K2
Backed up with Akeeba - 20 mb
thanks for the tip after I post the result
Answers
Hi Jose orlando de lima,
I don't know if it's possible to fix a size of the cache folder but..
in this directory.. it's all image that you use in K2 gallery and K2 image.
to reduce size, you can go in the K2 Parameters, tab Image and reduce the Quality (%) used when processing images.
You can also reduce width of item image that you don't use the size...
if you don't used medium image... you may put 1 in px example...
but if you do this... it's possible that the current images on your website will not be processed but the future ones should be.
Best regards
Source http://getk2.org/community/New-to-K2-As ... ache-on-K2
-
- Senior Boarder
6 posts
• Page 1 of 1