Page 1 of 2

Displays 1 item from gallery

Posted: Sat Dec 12, 2020 9:07 am
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

Re: Displays 1 item from gallery

Posted: Sat Dec 12, 2020 10:46 am
by admin
Hello!

I believe you need <!--ITEM_IMAGE--> tag

Re: Displays 1 item from gallery

Posted: Sat Dec 12, 2020 2:59 pm
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

Re: Displays 1 item from gallery

Posted: Sat Dec 12, 2020 5:57 pm
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

Re: Displays 1 item from gallery

Posted: Sat Dec 12, 2020 8:20 pm
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 } ?>

Re: Displays 1 item from gallery

Posted: Mon Dec 14, 2020 11:41 am
by admin
ok, how do you link to a page that uses content_single_item?

Re: Displays 1 item from gallery

Posted: Tue Dec 15, 2020 8:43 pm
by spartan90

Re: Displays 1 item from gallery

Posted: Wed Dec 16, 2020 10:25 am
by admin

Re: Displays 1 item from gallery

Posted: Wed Dec 16, 2020 2:12 pm
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.

Re: Displays 1 item from gallery

Posted: Thu Dec 17, 2020 10:38 am
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