Keyword

Disable the link on item image

  • hustla214
  • hustla214's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #92171 by hustla214
Disable the link on item image was created by hustla214
Hi

 

im wondering how i can disable the link on item image in item view.

 

i like to have, that the item image in category view link to the artice himself (so that works fine), but in the article page i would have the image just as an logo or something. without a link to the original image size.

 

How can i do that? maybe in the code or something? that is a feature i really miss in K2...

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #92172 by Olivier Karfis
Replied by Olivier Karfis on topic Disable the link on item image
Hi.

 

In your item.php file, remove line 208 (the one that starts with <a class="modal" and the corresponding closing </a> on line 210.

 

Make sure you do this in an overide so that your changes don't get erased when you upgrade.

 

--Olivier

Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com

Please Log in or Create an account to join the conversation.

  • hustla214
  • hustla214's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #92173 by hustla214
Replied by hustla214 on topic Disable the link on item image
Hi Olivier, i tried it out when i remove the whole line then the image dissapears.

Now i just removed the ''href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>">'' on line 208 and it works. The image is there but no link on it...

 

Thanks a lot.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #92174 by Olivier Karfis
Replied by Olivier Karfis on topic Disable the link on item image
Yes, I did not mean for you to remove the <img> tag but only the <a> tag...

--Olivier
hustla214 said:

Hi Olivier, i tried it out when i remove the whole line then the image dissapears.

Now i just removed the ''href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>">'' on line 208 and it works. The image is there but no link on it...

 

Thanks a lot.

Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #92175 by BBC
Replied by BBC on topic Disable the link on item image
If someone find some way to open Item image as URL, (extern website) just write it ? Thanks.
Some solution would be to call extra field "Link".

Please Log in or Create an account to join the conversation.

  • hustla214
  • hustla214's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #92176 by hustla214
Replied by hustla214 on topic Disable the link on item image
good idea. would be very useful...

BBC said:
If someone find some way to open Item image as URL, (extern website) just write it ? Thanks. Some solution would be to call extra field "Link".

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #92177 by BBC
Replied by BBC on topic Disable the link on item image
community.getk2.org/forum/topics/disable-the-link-on-item-image#

 

Just use it in Item template file. Same principle.

hustla214 said:

good idea. would be very useful...
BBC said:
If someone find some way to open Item image as URL, (extern website) just write it ? Thanks. Some solution would be to call extra field "Link".

Please Log in or Create an account to join the conversation.

  • Vivi Gamskjær Vroue
  • Vivi Gamskjær Vroue's Avatar
  • Offline
  • New Member
  • Owner of www.semignu.dk
More
11 years 8 months ago #92178 by Vivi Gamskjær Vroue
Replied by Vivi Gamskjær Vroue on topic Re: Disable the link on item image
Hi.
Where is the item.php file located?

Please Log in or Create an account to join the conversation.

  • Vivi Gamskjær Vroue
  • Vivi Gamskjær Vroue's Avatar
  • Offline
  • New Member
  • Owner of www.semignu.dk
More
11 years 8 months ago #92179 by Vivi Gamskjær Vroue
Replied by Vivi Gamskjær Vroue on topic Re: Disable the link on item image
Found the answer myself

components/com_k2/controllers

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum