Textpattern Forum

You are not logged in. Register | Login | Help

#721 2012-01-10 10:36:56

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

Re: smd_slimbox

JeroenC wrote:

how to display only 1 thumbnail on the page instead of all the thumbnails that are linked to the current article?

Try smd_gallery instead. It’s more powerful and has the thumblimit attribute (see my reply to that topic).


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#722 2012-01-10 10:40:10

JeroenC
Member
From: Finland
Registered: 2010-04-14
Posts: 30
Website

Re: smd_slimbox

cool will do :-)
Thanks Stef

Do you happen to have an openstreetmap plugin (openlayers actually)?

:-)
Jeroen


Time to volunteer? Come and join us at a great project which is going to be opensource: https://www.caloom.com

Offline

#723 2012-01-10 10:44:02

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

Re: smd_slimbox

JeroenC wrote:

Do you happen to have an openstreetmap plugin (openlayers actually)?

Not by me… but you can ask around. Someone will no doubt help out (might be up MattD’s street, that one).


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#724 2012-01-10 11:13:40

JeroenC
Member
From: Finland
Registered: 2010-04-14
Posts: 30
Website

Re: smd_slimbox

thanks again :-)


Time to volunteer? Come and join us at a great project which is going to be opensource: https://www.caloom.com

Offline

#725 2012-01-10 13:27:25

halftone
New Member
Registered: 2011-12-22
Posts: 3

Re: smd_slimbox

Slimbox needs the thumbnails as links to the slideshow. /limit prevents them entirely so won’t work. You just want to stop them appearing by using CSS display:none. Here’s how it’s done in Drupal, which I know better than TXP http://drupal.org/node/237580

[edit: oops, just seen the above re smd_gallery thumblimit, which appears to be the right answer]

Last edited by halftone (2012-01-10 13:30:28)

Offline

#726 2012-01-18 13:25:25

ax
Member
From: Germany
Registered: 2009-08-19
Posts: 97

Re: smd_slimbox

I am using smd_limbox to display images like this:

<txp:smd_slimbox category='<txp:category type="image" />' limit="100" sort="name" />

This is fine, but the prev/next links cycle through the parent category when a category list is displayed . Therefore, in the middle of the category list, you have a prev link in the first image that points to the previous category, and a next link in the last image that points to the next category. Is this intended and how can it be avoided?

Offline

#727 2012-01-18 14:20:40

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

Re: smd_slimbox

ax wrote:

the prev/next links cycle through the parent category when a category list is displayed

Try adding groupname="?c" and see if that fixes things.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#728 2012-01-18 14:29:53

ax
Member
From: Germany
Registered: 2009-08-19
Posts: 97

Re: smd_slimbox

Yes indeed, it fixes my problem :)) Thank you so much, you are a genius.

Offline

#729 2012-01-22 11:49:52

ax
Member
From: Germany
Registered: 2009-08-19
Posts: 97

Re: smd_slimbox

There is a problem with HTML5 validation because of the rel="lightbox-smd" attribute. According to the HTML5 specs the “rel” attribute may have only allowed values. As a workaround I have replaced the “rel” attribute with a “data-rel” attribute, which is absolutely valid, but I am not sure if this is a good idea.

Offline

#730 2012-01-22 14:44:51

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

Re: smd_slimbox

ax wrote:

According to the HTML5 specs the “rel” attribute may have only allowed values.

That’ll be a minor kick in the shins for lightbox authors since many of them use the rel attribute to group stuff or trigger from. Some even specify particular fixed strings that must be used. Or at least they did last time I checked (which was a while ago, granted).

Regardless, you can influence the rel attribute using the plugin’s trigger and groupname attributes. trigger defaults to lightbox- and groupname defaults to smd which, when combined, make up the rel. If this is a going to cause validation issues I can alter the defaults in the next version. But perhaps it’s best to wait and see what lighbox authors do first under the new restrictions. They might alter their approach entirely now the rel attribute is out of reach, perhaps using custom data- attributes instead.

If anybody has any hints or links on what the new wave of lightbox authors are doing in this regard, please post here and I’ll weigh up the approaches and alter the plugin accordingly.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB