- Posts: 640
- Thank you received: 16
Simplify Image Output on Views
- PeterChain
-
Topic Author
- Offline
Less
More
12 years 10 months ago #133879
by PeterChain
Simplify Image Output on Views was created by PeterChain
For a certain product view I used this code suggested by the HikaShop team:
But I get clickable images with its popup which I don't need for this views, the code for each image renders like this:
HOW CAN I JUST SIMPLY DISPLAY THE THUMBS, with no clickable options?
Code:
echo $this->image->display($image->file_path, 'hikashop_main_image', '', '','', 140, $height);
Code:
<a title="" class="hikashop_image_small_link" rel="{handler: 'image'}" href="/media/com_hikashop/upload/vendor1/2243_03.jpg" onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;" target="_blank" onmouseover="return hikashopChangeImage('hikashop_main_image','/media/com_hikashop/upload/thumbnail_400x140/vendor1/2243_03.jpg','140','105',this,'');"><img src="/media/com_hikashop/upload/thumbnail_400x140/vendor1/2243_03.jpg" alt="" style="border: 1px solid;"></a>
HOW CAN I JUST SIMPLY DISPLAY THE THUMBS, with no clickable options?
Please Log in or Create an account to join the conversation.
12 years 10 months ago #133904
by nicolas
Replied by nicolas on topic Simplify Image Output on Views
Simply like that:
echo $this->image->display($image->file_path, false, '', '','', 140, $height);
PS: PLEASE DO NOT USE CAPITAL LETTERS.
echo $this->image->display($image->file_path, false, '', '','', 140, $height);
PS: PLEASE DO NOT USE CAPITAL LETTERS.
The following user(s) said Thank You: PeterChain
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
12 years 10 months ago #133905
by PeterChain
Replied by PeterChain on topic Simplify Image Output on Views
Sorry for the capital letters!!
It worked perfectly! Thank you.
It worked perfectly! Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.165 seconds