Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#721 2012-01-10 10:40:10
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
#722 2012-01-10 10:44:02
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. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#723 2012-01-10 11:13:40
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
#724 2012-01-10 13:27:25
- halftone
- Member
- Registered: 2011-12-22
- Posts: 10
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
#725 2012-01-18 13:25:25
- ax
- Plugin Author
- From: Germany
- Registered: 2009-08-19
- Posts: 165
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
#726 2012-01-18 14:20:40
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. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#727 2012-01-18 14:29:53
- ax
- Plugin Author
- From: Germany
- Registered: 2009-08-19
- Posts: 165
Re: smd_slimbox
Yes indeed, it fixes my problem :)) Thank you so much, you are a genius.
Offline
#728 2012-01-22 11:49:52
- ax
- Plugin Author
- From: Germany
- Registered: 2009-08-19
- Posts: 165
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
#729 2012-01-22 14:44:51
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. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#730 2012-01-27 01:44:50
- abcdefg
- New Member
- Registered: 2012-01-27
- Posts: 1
Re: smd_slimbox
Hi Bloke!
I have run into a problem with a tag I was using to display images associated with an article on a page.
I was using this code:
<txp:smd_slimbox imagecaption="?caption" imageid="?article_image" />
It was working perfectly, however, for some bizarre reason, this chunk of code won’t sort images properly. For instance, if I have two images with ids 3 and 4, and I use the article_image field in the Write tab and put in “4, 3”.. the images still load up as 3 and 4 on the front-end.
Previously, from what I can remember, I could change the order in the field and it would render the images based on the sort order, but now, it seems to load images in an ascending order based on the image filename (1, 2, 3, etc)
Last edited by abcdefg (2012-01-27 01:45:34)
Offline
#731 2012-01-27 09:44:48
Re: smd_slimbox
hi abcdefg
here is your missing attribute:
sort='fixed'
as it says in the plugin help:
fixed forces thumbs to be output in the order given in imageid.
Offline
#732 2012-03-14 10:56:41
Re: smd_slimbox
Hello Bloke,
I’ve a problem using smd_slimbox. The black overlay doesn’t appear. Everything else is working fine. Can you help me out? I have other websites using this plugin and they’re working fine.
Please have a look at: http://www.dekeuterij.nl/fotoalbum
I’m using Textpattern v4.4.1 – Slimbox2.js v2.04 – Mootools.js
Offline