Check out my hot works - Only as a image gallery

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Nov 09, 2014 9:02 pm
Reply with quote
Report this post
Hi,

I want to display only pictures (& no further leading K2 item with description) in the Check Out my Hot Works section.

When the user clicks on any image, a bigger thumbnail should appear (as it is now), but the further leading link to the K2 item shouldn't be there & also the Author, Title and Date fields need to go off.

How do I achieve this?

Thanks
User avatar
Senior Boarder

GK User
Mon Nov 10, 2014 12:26 am
Reply with quote
Report this post
Hi,

you could switch this off by adding the following code to override.css

Code: Select all
.gkNspPM-Portfolio2 .gkPortfolioDesc {
display:none;
}


Now I think you want to have the image over the whole space- Add this also (the height is for the later stretch of the image):

Code: Select all
.gkNspPM-Portfolio2 .gkPortfolioImage {
width:100%;
height:100%;
}

The gkMainbody does not have the height to fit for a 4:3 image. So you can stretch the image to fit in the module or you can change the height of the module position. To stretch the image you can add this to the override.css:
Code: Select all
.gkNspPM-Portfolio2 .gkPortfolioPopup img {
width: 100%;
height: 100%!important;
}

Don't forget to switch on the override.
Best,
Dirk
User avatar
Senior Boarder

GK User
Mon Nov 10, 2014 10:32 am
Reply with quote
Report this post
Hi Dirk,

Thanks for the codes. They did remove the details of Author, Date and Title, but when I click on any image (from the bigger thumbnail), it still takes me to the leading K2 item description page.

How do I disable this?

Thanks and Regards!
User avatar
Senior Boarder

GK User
Mon Nov 10, 2014 11:06 am
Reply with quote
Report this post
Hi,

you can tweak the javascript for this. If you are using jquery (check in the module) you can edit the following file:
/modules/mod_news_pro_gk5/portal_modes/portfolio2/script.jquery.js

Look for line 119 and change this to the following:
Code: Select all
popup_image_wrap.html('<a><img src="' + img.attr('data-img') + '" /></a>');

Remember, if you now update the module, your changes will be lost.
Hope this helps,
Dirk
User avatar
Senior Boarder


cron