You are not logged in.
Wondering if there are any tutorials out there for adding pagination to the gallery, specifically when using it as a ‘single thumbnail display > slimbox popup’ style. As seen here: www.scalemodeladdict.com/gallery
Thanks again for pointing me in the right direction.
Scott.
Offline
Scott Girvan wrote:
Wondering if there are any tutorials out there for adding pagination to the gallery
Not tutorials as such no; just the plugin examples. If you’re doing that kind of one thumb -> multi image lightbox thing (very nicely done, btw) then limit is no good to you. My guess is that you’re using {object}, right? And possibly objectform? If so, how about trying the thumblimit attribute?
If I’ve done my job properly that should still switch paging on, still render all your group images, but stop rendering when it reaches N thumbnails. You can then use pageform and the paging replacement tags to add your nav bar. Plenty of examples in the help on that bit.
Be interesting to know if that works. And if it doesn’t I’ll damn well have a go at fixing the plugin so it does!
Last edited by Bloke (2010-04-26 19:57:27)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern.
Txp Builders – finely-crafted code, design and Txp
Offline
Hmmm, can’t get this to work.
In the gallery section I call an article called VIEW ALL
This is the body of that article:
<txp:smd_gallery category="gallery" sublevel="all" form="gallery" sort="date desc" thumblimit="1" pageform="gallery_nav" />Q
and this is the gallery form:
<a rel="lightbox-{category}" href="{url}" title="{title}"\>{object}</a>
Pageform is exactly what you have in your help files.
I’m dumb. Thank you.
Offline
Hi Scott
Without really studying it but what is that \ backslash doing there? Also the hyphen -{category} after lightbox looks suspicious too.
neme.org | neme-imca.org | hblack.net | LABS
Offline
Scott Girvan wrote:
Hmmm, can’t get this to work.
I think I’ve given you bogus advice then. Perhaps thumblimit simply limits the number of thumbs in each group and doesn’t actually imply any page limit. In fact, I’d bet that’s what it is, sorry for leading you astray. Wish I could remember what all attributes in all my plugins do!
If I come up with any ideas or a fix/new attribute that can help in this regard I’ll shout. Or of course, someone else may figure it out.
I’d probably remove that rogue backslash just for completeness (the -{category} is fine though, colak — it’s pretty standard syntax with lightbox scripts and this plugin).
The smd plugin menagerie — for when you need one more gribble of power from Textpattern.
Txp Builders – finely-crafted code, design and Txp
Offline
Thanks, both of you. Yeah that \ is just a type and me not noticing it. If a solution pops up, great. If not I’ll figure some kind of hack. It’s a great (and super easy) gallery plugin. I really like it. It makes me feel all warm and fuzzy.
Offline
Hi Hope you can help!
Firstly this is one amazing plugin! I use it for all the sites I build! Don’t know what I would do without it!
However I have quite a complex site to build and I am unsure how to setup this gallery that will be very easy for them to update.
Its for a pottery website where they would like all the artists listed in alphabetical order on one page and then you click on someones name which then goes through to the artists personal page showing a description and then 6 images of that artists work.
Now I know I can do this by catagory but that wont be very easy for them to update.
Is there a way maybe the plugin can only show the images matching the alt tag name or the article name?
Or can someone suggest something easier?
Thanks SO much in advance!
Offline
Dont worry found the best option!
Simly use <txp:smd_gallery id=”?article_image” form=“gallery” />
And put the images in the article images box seperated by commas
Offline
Hi Hennie,
No I haven’t. It would be great to find a solution. My gallery is filling up and I’ll need to paginate it soon.
Offline