Textpattern Forum

You are not logged in. Register | Login | Help

#671 2010-04-26 19:39:51

Scott Girvan
Member
Registered: 2010-04-14
Posts: 10

Re: smd_gallery: super-flexible gallery generator

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

#672 2010-04-26 19:56:51

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,905
Website

Re: smd_gallery: super-flexible gallery generator

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

#673 2010-04-28 13:22:43

Scott Girvan
Member
Registered: 2010-04-14
Posts: 10

Re: smd_gallery: super-flexible gallery generator

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

#674 2010-04-28 15:36:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,970
Website

Re: smd_gallery: super-flexible gallery generator

Hi Scott

Without really studying it but what is that \ backslash doing there? Also the hyphen -{category} after lightbox looks suspicious too.


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#675 2010-04-28 16:03:23

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,905
Website

Re: smd_gallery: super-flexible gallery generator

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

#676 2010-04-28 16:31:24

Scott Girvan
Member
Registered: 2010-04-14
Posts: 10

Re: smd_gallery: super-flexible gallery generator

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

#677 2010-05-08 09:23:39

miles
Member
Registered: 2008-05-22
Posts: 27

Re: smd_gallery: super-flexible gallery generator

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

#678 2010-05-10 07:25:19

miles
Member
Registered: 2008-05-22
Posts: 27

Re: smd_gallery: super-flexible gallery generator

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

#679 2010-05-11 11:07:57

Hennie
Member
From: Nederland
Registered: 2009-02-06
Posts: 15
Website

Re: smd_gallery: super-flexible gallery generator

Scott, did you already figured out a hack to limit thumbnails to just one per subcategory with sublevel=“all” ?

Offline

#680 2010-05-11 11:58:53

Scott Girvan
Member
Registered: 2010-04-14
Posts: 10

Re: smd_gallery: super-flexible gallery generator

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

Board footer

Powered by FluxBB