You are not logged in.
wet_thumbfilter displays the thumbnails for articles images meeting various filter criteria with an optional link to the articles.
Sample use:
| tag | function |
|---|---|
<txp:wet_thumbfilter category="events" /> |
displays the most recent thumbnail belonging to an article in the “events” category. |
<txp:wet_thumbfilter category="events" sortby="LastMod" offset="1" /> |
displays the thumbnail which is associated with an article out of the “events” category. Articles are sorted by the date of last modification. The article at offset 1 (i.e. the second) is chosen. |
<txp:wet_thumbfilter category="events,fairs" limit="3" wraptag="ul" break="li" label="Recent pics" labeltag="h3" /> |
displays thumbnails from the three most recent articles out of the “events” or “fairs” category. The thumbnails are embedded into an unordered list and labelled by a h3. |
Download and further information. Initial plugin request and use case.
Last edited by wet (2006-11-05 17:02:35)
Try wet_quicklink | Me | @rwetzlmayr | +Robert Wetzlmayr | Repos
Offline
Oh, nice! Will sortby=“rand()” work?
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
Of course. wet_thumbfilter just passes all “sortby” options on to the SQL query.
Try wet_quicklink | Me | @rwetzlmayr | +Robert Wetzlmayr | Repos
Offline
Great! I can use this, thanks.
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
thanks wet, you’re the thumbnail king
Offline
Nowadays, in this overly cluttered world you’ve got to find yourself a niche inside a niche to shine bright ;-)
Try wet_quicklink | Me | @rwetzlmayr | +Robert Wetzlmayr | Repos
Offline
Looks and works nicely. Now how do I have the thumbnail link to each of the articles? Or is that not possible in this version?
Please try Textpattern for Aptana
Offline
Thanks for the input, Nichod. I was too shortsighted. After some thinking I decided to simplify the use of wet_thumbfilter and let it behave like any other ordinary tag. It now shares an attribute subset with wet_article_thumb. The plugin displays the selected thumbnail by itself, removing the need for any embracing img tag, and it will provide a link to the article as well.
I’ve adopted the samples on the initial post of this thread. Please download version 0.2 from the location given there.
//w&
Last edited by wet (2005-12-16 06:00:24)
Try wet_quicklink | Me | @rwetzlmayr | +Robert Wetzlmayr | Repos
Offline
Nice. How about a limit attribute? Or is it there and I’m not seeing it?
Please try Textpattern for Aptana
Offline
No, there is no limit attribute. What would be the use of such an attribute?
Try wet_quicklink | Me | @rwetzlmayr | +Robert Wetzlmayr | Repos
Offline