Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2005-12-16 07:04:58

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Ahh. This only shows the most recent thumbnail. Any chance of having it show the past 3?

Offline

#12 2005-12-16 07:20:13

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Of course, that’s what the offset attribute is good for.

Simple put those three lines into a form, an article or a template:

<txp:wet_thumbfilter category="events" offset="0" />
<txp:wet_thumbfilter category="events" offset="1" />
<txp:wet_thumbfilter category="events" offset="2" />

You can also add any useful HTML markup:

<ul class="gallery">
<li><txp:wet_thumbfilter category="events" offset="0" /></li>
<li><txp:wet_thumbfilter category="events" offset="1" /></li>
<li><txp:wet_thumbfilter category="events" offset="2" /></li>
</ul>

Got it?

Last edited by wet (2005-12-16 07:22:53)

Offline

#13 2005-12-16 09:32:40

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Ahhh. hehe. I didn’t think of doing that. I’m really not sure why. Well THANKS! Its great that something like this could be plugged together so quickly and efficiently. I do hope that at some point this type of stuff will be possible from the core. We really need more image manipulation possibilities.

Last edited by Nichod (2005-12-16 09:36:38)

Offline

#14 2005-12-16 12:44:50

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,454
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

wet, is it very hard to make it possible to define multiple categories? Like <txp:wet_thumbfilter category="dogs,cats,mice" />?


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

#15 2005-12-16 14:29:59

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

It is certainly doable. Are you asking out of curiosity or do you need that feature?

Offline

#16 2005-12-16 17:09:41

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,454
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Well, I thought I needed it, but that was because I hadn’t read the documentation very well, and thought that category meant the image category. So my question was a bit rash. I can do what I wanted to do now with the plugin as it is.
For another site of mine though it would be a nice feature to have. But don’t go through any trouble if I’m the only one that wants it ;) I don’t really need it.


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

#17 2005-12-17 10:37:09

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Eventhough you can get a limitation by using offset, the attribut limit would be much more handy, wouldn´t it?
First: everybody knows the attribut limit
Second: less code/markup is needed

Any chance wet, to get a limit attribut?

Offline

#18 2005-12-17 10:48:27

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

I’ve collected requests for limit, label, labeltag, wraptag, and break, comma-separated section and category lists so far (basically, that’s the common attribute set for core list tags like txp:section_list). Maybe I’ll brush this baby up and supersize it as another christmas present.

btw: I think I know what Mary meant, and I won’t tell either ;-)

//w&

Offline

#19 2005-12-22 22:05:41

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,265
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

v 0.3 adds list mode supported by limit, break, wraptag and related attributes. If you are waiting for comma separated section and category lists, please continue waiting until the next release. Give it a whirl!

Last edited by wet (2005-12-22 22:28:30)

Offline

#20 2006-01-01 08:47:31

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: wet_thumbfilter: Renders article thumbs matching various criteria

Wet,
I got the following back. (obviously I am getting no output)
<code><ul class=“wet_thumbfilter”><li><img src=”./wet_thumbfilter/no-image/17,18,19,20,5,6,7,8,9,10,11,12,13,14,15,16” /></li></ul></code>

The numbers of the images above were placed in the article image field. (by upm_img_popper – although I doubt that’s pertinent)

There is no output for the frontpage of the section nor the individual_article?
This is the full tag I am using.
<code>
<txp:wet_thumbfilter section=“home” wraptag=“ul” break=“li” />
</code>

1. I assume I am missing something about how I am placing the images in the first place?
or
2. I may have something missing from my article form? (what are the necessary components)
or
3. Something about testing locally is messed up? Doubt it? EDIT
4. I inserted <code><txp:article_image /></code> into my article form and I am getting no output from it either?
just this code <code><img src=“17,18,19,20,5,6,7,8,9,10,11,12,13,14,15,16” alt=”“ /></code>
EDIT #2
5. I get this error in debugging mode: <code>tag_error <txp:wet_thumbfilter section=“home” wraptag=“ul” break=“li” /> -> Textpattern Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’18,19,20,5,6,7,8,9,10,11,12,13,14,15,16 and thumbnail <> ‘0’‘ at line 1
select * from `txp_image` where id = 17,18,19,20,5,6,7,8,9,10,11,12,13,14,15,16 and thumbnail <> ‘0’ on line 61
</code>

Your help, or anyone else’s would be much appreciated.

Matthew

Last edited by ma_smith (2006-01-01 09:23:47)


Offline

Board footer

Powered by FluxBB