Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
Re: wet_thumbfilter: Renders article thumbs matching various criteria
I don’t see anything about this anywhere, but it doesn’t hurt to ask eh?
Is there any way to hack this a little to get a coma seperated section list? Currently the only thing I can find to take a coma seperated list of sections is chh_article_custom. So I tried to use image excerpts and then generate a little side column with images as excerpt with a permalink to the full listing, but this looks more like what I need. I need to exclude 1 particular section (blog) though….any ideas on a work around?
Thanks!
Jamie
Offline
Re: wet_thumbfilter: Renders article thumbs matching various criteria
Jamie,
Would it be awkward to place the plugin within an if_section, or if_article_section tag? I know sometimes that’s not what I’m look for.
?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: wet_thumbfilter: Renders article thumbs matching various criteria
I have so many conditionals going, I am not sure if I can keep up. What would be really nifty is an “txp:if_not_section” tag. right now the problem I am having is that the template and plug in calls are in conditionals, but the plug in still calls from all section. I am trying to call all articles in all sections but one and display their article image (or excerpt that is an image) with a permalink to the full listing. I have some category crossover between sections so I can’t call them by category. I have to be able to restrict the section. I think what I will try right now and see what happens is just use the plug in 9 times right on top of each other and see if I can jury rig what I need for now. See my post here and maybe what I am describing/looking for will be more clear. Because it is not so easy to explain.
Offline
Re: wet_thumbfilter: Renders article thumbs matching various criteria
soulship wrote:
Is there any way to hack this a little to get a coma seperated section list?
If I am not completely misinterpreting your request, your wishes are already fulfilled. From wet_thumbfilter’s documentation page:
attribute description default category Category filter, comma separated list Empty section Section filter, comma separated list Empty … … …
This is included since v0.4:
bq..| 2006-01-01 | 0.4 | Supports comma separated lists of multiple sections, categories and article images |
HTH,
//w&
Last edited by wet (2006-05-03 04:19:28)
Offline
Re: wet_thumbfilter: Renders article thumbs matching various criteria
v0.4! DOH!
wet_thumbfilter Robert Wetzlmayr 0.2 Displays the thumbnail for one article’s image meeting various filter criteria with an optional link to the article. yes edit help
That may explain some things, it seems I have been using a copy from December that was installed and not used until now.
Sorry for polluting your thread with chatter :)
Offline
#30 2006-05-12 17:29:56
- shanghai
- Member
- Registered: 2006-05-09
- Posts: 20
Re: wet_thumbfilter: Renders article thumbs matching various criteria
the sortdir random (sortdir=“rand()”) doesn’t seem to be working, no output given at all when used.
Offline