Page 1 of 1

content_single_item questions

Posted: Thu Jul 17, 2014 8:51 pm
by rax
I'm creating a picture gallery site, using hosted galleries and have a few quesitons.

I setup the template content_custom_pic for hosted gallery, but couldn't find info in the wiki regarding the template content_single_item. What is the url/variable used to call the template content_single_item when a gallery thumb is clicked on? Is the only way to do this by using &force_template?

On content_single_item page, what is the variables for next image/previous image?

Re: content_single_item questions

Posted: Thu Jul 17, 2014 9:53 pm
by admin
Ц\щ a rewrite it looks like

/scj/tube/?slug=...&item_id=..

where item_id = 1,2, and so on number of image in a gallery.


so next and prev are going to be

Code: Select all

<?= (int)  $_GET['item_id'] + 1 ?>
<?= (int)  $_GET['item_id'] - 1 ?>

Re: content_single_item questions

Posted: Sat Sep 27, 2014 7:25 pm
by rax
Is this the correct url for sending to content_single_item or is there an easier way?

http://www.domain.com/scj/tube/?slug=as ... &item_id=1

How can I clean the url up a bit? For example:

http://www.domain.com/ashlyn-brooks/image1.html
http://www.domain.com/ashlyn-brooks/image2.html

etc..

Re: content_single_item questions

Posted: Sun Sep 28, 2014 3:07 am
by admin
Yes, url is correct
There's a default rewrite

http://www.domain.com/ashlyn-brooks/1.html

but you can add any rewrite for that url.