Pagination
Posted
#6278
(In Topic #1359)
It shows a lot of images. I'd like it to only show 100 images at a time, instead of over 1000 on a single page. Is there a way to do this with a comcode or tempcode?
Posted
Looks like it could just be a gallery?
You can embed a gallery using the main_gallery_embed block, and it supports pagination.
Or maybe you don't want to do that as you want them fully embedded, no thumbnailing?
That should still be possible with the main_gallery_embed block, but would be a little more work.
You'd need to pass a guid parameter to the block. Let's suppose you set the guid to 'embedded_gallery'. And you put the images in a gallery named 'some_gallery_name'.
Code
[block="some_gallery_name" pagination="1" guid="embedded_gallery"]main_gallery_embed[/block]
Then you'd need to edit the GALLERY_IMAGE template to put out different content based on the guid.
Code
{+START,IF,{$EQ,{_GUID},embedded_gallery}}
<img alt="{TITLE}" src="{FULL_URL*}" />
{+END}
{+START,IF,{$NEQ,{_GUID},embedded_gallery}}
(original contents of the template goes here)
{+END}
I just tested with a test image in a gallery and this seems to work (I didn't test the pagination but I don't see why that wouldn't work).
1 guest and 0 members have recently viewed this.