Displays 1 item from gallery

spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Displays 1 item from gallery

Post by spartan90 »

Hello, I found stuck at this point with smart cj and I need your help.

I have uploaded Custom Gallery, created around 15 thumbs with crop the small images and hotlink the big images. I got content_custom_pic where I have all thumbs CROPPED from each gallery. Now when you go to an image, I have created separate page with single thumb (content_single_item). Here to display the image I got: <!--THUMB_URL--> but the problem is that is displaying the small cropped image. What is the command to show the big hotlinked image instead of the cropped one. I know for each thumbs the command is <!--IMG_1_IMAGE--> but in this situation I need the actual thumb that is accesed. Hope you understand. Thanks
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Displays 1 item from gallery

Post by admin »

Hello!

I believe you need <!--ITEM_IMAGE--> tag
Don't forget to run script update
spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Re: Displays 1 item from gallery

Post by spartan90 »

Great! Is working. And if I wanna make on the content_single_item page an PREV and NEXT image link?

Like the ones for page:

<?php if ('<!--PREV_PAGE-->') { ?>
<a class="btn3" href="/category/<!--CATEGORY_NAME-->/<!--SORT_ORDER-->/<!--PREV_PAGE-->/" title="<!--PREV_PAGE-->" target="_self"><i class="fas fa-arrow-circle-left"></i> BACK</a>
<?php } ?>
<?php if ('<!--NEXT_PAGE-->') { ?>
<a class="btn3" href="/category/<!--CATEGORY_NAME-->/<!--SORT_ORDER-->/<!--NEXT_PAGE-->/" title="<!--NEXT_PAGE-->" target="_self">NEXT <i class="fas fa-arrow-circle-right"></i></a>
<?php } ?>

What should be the functions?

Thanks
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Displays 1 item from gallery

Post by admin »

you have ITEM_ID tag
so the next is <!--ITEM_ID--> +1
and prev = <!--ITEM_ID--> -1
but I can add tags for it
Don't forget to run script update
spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Re: Displays 1 item from gallery

Post by spartan90 »

I understand but I dunno how to add them in the template context to copy the template I use for pagination:

<?php if ('<!--PREV_PAGE-->') { ?>
<a class="btn3" href="/category/<!--CATEGORY_NAME-->/<!--SORT_ORDER-->/<!--PREV_PAGE-->/" title="<!--PREV_PAGE-->" target="_self"><i class="fas fa-arrow-circle-left"></i> BACK</a>
<?php } ?>
<?php if ('<!--NEXT_PAGE-->') { ?>
<a class="btn3" href="/category/<!--CATEGORY_NAME-->/<!--SORT_ORDER-->/<!--NEXT_PAGE-->/" title="<!--NEXT_PAGE-->" target="_self">NEXT <i class="fas fa-arrow-circle-right"></i></a>
<?php } ?>
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Displays 1 item from gallery

Post by admin »

ok, how do you link to a page that uses content_single_item?
Don't forget to run script update
spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Re: Displays 1 item from gallery

Post by spartan90 »

admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Displays 1 item from gallery

Post by admin »

Don't forget to run script update
spartan90
Posts: 25
Joined: Wed Sep 12, 2018 12:45 am

Re: Displays 1 item from gallery

Post by spartan90 »

yes, also I need for previous if exists. If you are on image 2 to be able to go back to image 1. Exactly like the pagination shown up.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Displays 1 item from gallery

Post by admin »

ok, i've added 2 new tags

<!--ITEM_ID_NEXT--> <br>
<!--ITEM_ID_PREV--> <br>

so link to the next items is

Code: Select all

http://pussycrave.com/gallery/beautiful-young-teens/<!--ITEM_ID_NEXT-->.html
Don't forget to run script update
Post Reply