Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#401 2009-03-04 15:00:41
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 8,838
- Website
Re: smd_gallery: super-flexible gallery generator
jpdupont wrote:
I get this error messages at the first line : …No txp:article tag….
That’s annoying isn’t it! Have you tried adding this:
<txp:if_individual_article>
<txp:article pgonly="1" />
</txp:if_individual_article>
to your page somewhere to sort of “pretend” to TXP that there’s an article tag there?
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
#402 2009-03-04 15:12:11
- jpdupont
- Member
- From: Virton (BE)
- Registered: 2004-10-01
- Posts: 752
- Website
Re: smd_gallery: super-flexible gallery generator
Same problem with your code, BUT …
works fine with this line :
<txp:article pgonly="1" />
TXP bug ?
Offline
#403 2009-03-04 22:38:57
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 8,838
- Website
Re: smd_gallery: super-flexible gallery generator
jpdupont wrote:
Same problem with your code
Oh, ok. It must be because the one with the URL variable is being treated as an article list. I assumed (wrongly) it was being treated as an individual article.
Bug? Possible, but unlikely. Annoyance? Yes: sometimes you just don’t want an article on the page… :-\
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
#404 2009-03-06 14:16:37
- koobs
- Member
- Registered: 2008-11-25
- Posts: 27
Re: smd_gallery: super-flexible gallery generator
Hey Bloke,
Unusual request here!
Is there a way i can add the same image twice in the article image field? At the moment it seems duplicated entries are ignored (a good idea).
eg. 1-4, 3 returns only 1-4 and not additional instance of image 3.
thanks for any advice.
Offline
#405 2009-03-06 22:24:41
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: smd_gallery: super-flexible gallery generator
Bloke:
Sorry I haven’t responded the last couple of days. I am still working on the background color change item. I think I am close – (and wouldn’t you know I do not need it anymore for the project) – I am going to still try to get it to work and I will let you know how it turns out.
Regarding the calendar plug in and dates (I know it is a different thread) but I wanted to let you know I am using Kevin Luck’s datePicker and applying it to both the published and expired fields. I still need to test it more, but I think it will work. Kevin was nice enough to give me a push in the right direction so that I could modify his datePicker from altering pulldown fields to altering text input fields.
progre55
Offline
#406 2009-03-09 03:44:34
- mrtunes
- Member
- From: Toronto, On
- Registered: 2007-03-12
- Posts: 575
- Website
Re: smd_gallery: super-flexible gallery generator
hi bloke! hope you had a nice weekend. i’m wondering if you could tell me what the setting is to make smd_gallery not wrap the images in an <a> tag? for my slideshows all the images are clickable
<div id="slideshow" >
<txp:smd_gallery category="topslideshow" />
</div>
Offline
#407 2009-03-09 08:39:32
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 8,838
- Website
Re: smd_gallery: super-flexible gallery generator
mrtunes wrote:
make smd_gallery not wrap the images in an <a> tag
You need to not use the ‘default’ (built-in) form. Specify your own form or use the smd_gallery tag as a container and specify your tag markup there. e.g.
<txp:smd_gallery category="topslideshow" wraptag="div" html_id="slideshow">
<txp:image id="{id}" />
</txp:smd_gallery>
will do the same as your example but will show all the images in the given category without anchors. Season to taste.
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
#408 2009-03-09 08:43:36
- mrtunes
- Member
- From: Toronto, On
- Registered: 2007-03-12
- Posts: 575
- Website
Re: smd_gallery: super-flexible gallery generator
Bloke wrote: You need to not use the ‘default’ (built-in) form. Specify your own form or use the smd_gallery tag as a container and specify your tag markup there. e.g.
bc. <txp:smd_gallery category=“topslideshow” wraptag=“div” html_id=“slideshow”>
<txp:image id=”{id}” />
</txp:smd_gallery>
will do the same as your example but will show all the images in the given category without anchors. Season to taste.
thank you looks great! i’m also having a problem cause i used innerfade and it’s position in IE is off. but that’s not a SMD problem, it just helps to spit out the images. in the meantime i’m using SMD random banner as a bandaid.
i have to also say that quoting and coding on this forum is really hard to figure out. :(Offline
#409 2009-03-09 09:38:09
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 8,838
- Website
Re: smd_gallery: super-flexible gallery generator
mrtunes
Glad it helps.
i have to also say that quoting and coding on this forum is really hard to figure out. :(
It’s Textile so it takes a while to get your head round it. FYI, you need to put a blank line above any bc.
and a blank line below any bq.
for it to render correctly. Meh.
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
#410 2009-03-10 23:14:49
- mrtunes
- Member
- From: Toronto, On
- Registered: 2007-03-12
- Posts: 575
- Website
Re: smd_gallery: super-flexible gallery generator
Bloke wrote:
It’s Textile so it takes a while to get your head round it. FYI, you need to put a blank line above any
bc.
and a blank line below anybq.
for it to render correctly. Meh.
ok so i got my last issue with the links in the images ironed out, thanks. the next one is with the slimbox example. i’m not sure where i go to add the preferences that enable the previous and next buttons to show up. ideally i would also want to activate those on the keyboard. from the slimbox documentation i found an example of options, but not where to insert this. again, not entirely in the scope of smd_gallery, you just offer the tools, i know ;)
{ overlayOpacity: 0.6,
easing: "easeOutElastic",
captionAnimationDuration: 1,
counterText: "Image {x} sur {y}",
closeKeys: [27, 70],
nextKeys: [39, 83] }
Last edited by mrtunes (2009-03-10 23:15:34)
Offline