Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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)
Please try Textpattern for Aptana
Offline
#14 2005-12-16 12:44:50
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
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" />
?
Offline
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
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
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.
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
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
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
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)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: wet_thumbfilter: Renders article thumbs matching various criteria
Matthew,
Textpattern supports just one image per article by design. Thus, txp:article_image will never work with a comma separated list of images specified with the article.
Nevertheless, there are several plugins loosening this restriction by allowing for more than one image per article, upm_img_popper being one of them. zem_article_image is a suitable drop-in replacement for txp:article_image and will also obey image lists.
I have just extendend wet_thumbfilter to accept a list of images, too. You will have to download wet_thumbfilter v0.4 to use this feature.
Happy New Year,
Robert
Offline
#22 2006-01-25 08:46:01
- bluelion
- New Member
- From: Vienna
- Registered: 2006-01-18
- Posts: 6
Re: wet_thumbfilter: Renders article thumbs matching various criteria
Hi,
when i include the plain wet_thumbfilter tag (<txp:wet_thumbfilter />) into a site pattern it should produce an output with the thumbs of all (?) articles, right? But it isn’t. No output even if I add some tags like section or category. Basically it is possible to produce an output with the hak_article_thumb plugin. But that plugin has limited features.
So what can I do. Please excuse my total lack of knowledge concerning txp.
Greetings,
Hannes
Offline
Re: wet_thumbfilter: Renders article thumbs matching various criteria
As we both have discovered the solution to this problem via private mail, I am just posting the results here for future reference:
Though Textpattern allows to you use both a path and a numerical id as a method of designating article images, wet_thumbfilter solely relies on numerical article image ids. Either a single number or a comma separated list of numbers is supported.
//w&
Offline
#24 2006-04-29 08:24:46
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: wet_thumbfilter: Renders article thumbs matching various criteria
Any sample galleries out there i can add to the current gallery plugins table ?
Offline