Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
Flag it:
bau_article_thumb
All it does is output an article thumbnail. I’m really not sure why txp:thumbnail doesn’t appear to work in RC3, but it really didn’t seem necessary with zem_article_thumb, until it broke in one particular instance for some strange reason that I couldn’t figure out.
So, I went back to the txp:article source code to find out how it worked. Basically, it returned the article ID number and added an image url string to locate the image in the default image directory. Since thumbnails are created in Textpattern with the addition of the letter “t”, it was just a simple matter of adding it to the url string.
That’s all it does.
To see how I’ve used it for a thumbnail gallery, you can see my page template
Initially released:
2005-04-08Posted here:
08 Apr 2005









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Commented (6)
Thanks,
Alvin…
I also hacked the code, changing all instances of
styletoclass.Which means, for example, I can use the following in my TXP forms:
< txp:bau_article_thumb class = "thumb" />
Which will output:
< img src = "http://localhost:8007/images/1t.jpg" alt = "A lovely car" class="thumb" />
Which renders a lovely thumbnail floated to the left when using this CSS:
.thumb {
float: left;
margin: 0 10px 10px 0;
border: 2px solid #ccc;
}
www.builderscollective.com/articles/the-most-basic-textpattern-plugin-ever-gets-better
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.
Would you care to write a comment or visit the forum discussion?