Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#397 2009-03-04 11:19:02

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: smd_gallery: super-flexible gallery generator

jpdupont wrote:

is it possible with your plugin to generate a xml file

You mean a bit like this?


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

Online

#398 2009-03-04 12:05:51

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

Re: smd_gallery: super-flexible gallery generator

Aaah dammit, you’re freakishly good, Stef!


Keith
Blyth, Northumberland, England
Capture The Moment

Offline

#399 2009-03-04 13:01:50

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_gallery: super-flexible gallery generator

Yes !!! Thanks Stef ! I’ll try as soon as possible.

Offline

#400 2009-03-04 14:53:24

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_gallery: super-flexible gallery generator

Works fine if I hardcode the image category in the page.

I create the xml section and page, with the code below. I want to extract with adi_gps the category GET variable :

www.mysite.com/xml?c=bannieres 

The variable is extracted, and the images list is correctly generated by the smd_gallery plugin, but xml is badly generated because I get this error messages at the first line : …No txp:article tag….

If I call the same page without variable in URL, xml is ok (and plugin list all the site images).

Where I’m wrong ? I get the no txp:article message only if I put variable in URL.

<txp:mg_setheader /><?xml version="1.0" encoding="utf-8"?>
<slideshow>
<txp:output_form form="monoslideshow_pref"/>
<album title="Diaporama" description="Diaporama" imagePath="/images">
<txp:smd_gallery category='<txp:adi_gps name="c" />'>
     <img src="{name}" title="{alt}" description="{title}" />
</txp:smd_gallery>
</album>
</slideshow>

Offline

#401 2009-03-04 15:00:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

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

Online

#402 2009-03-04 15:12:11

jpdupont
Member
Registered: 2004-10-01
Posts: 752

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: 11,456
Website GitHub

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

Online

#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: 11,456
Website GitHub

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

Online

#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

Board footer

Powered by FluxBB