Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-31 17:30:41

bzx
Member
Registered: 2007-01-11
Posts: 15

Image thumbnail - useful tip - should be posted in the faq

Hello

For the past 60 minutes I am trying to find a way how to display an image thumbnail without the need of uploading a separate thumbnail for the same image. I couldn’t find this anywhere in the FAQ, or here in the forums, but this seems like an easy solution – you just add “t” after image ID:

<txp:image id=“1t” />

And this displays the thumbnail of the image you upload.

If this has been posted already, then sorry about that, but for me it seems like a nice solution.

Peace


PS. well okay i eventually found this:
http://textbook.textpattern.net/wiki/index.php?title=Txp:thumbnail_/

but it wasn’t easy.

Last edited by bzx (2007-03-31 17:33:38)

Offline

#2 2007-03-31 18:58:49

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Image thumbnail - useful tip - should be posted in the faq

bzx wrote:

<txp:image id="1t" />

I didn’t know that :)

If it’s an article image you can also use (in the article form) <txp:article_image thumbnail="1" />.

Offline

#3 2007-03-31 19:00:34

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Image thumbnail - useful tip - should be posted in the faq

<txp:thumbnail id="1" /> makes more sense, in my opinion, especially if you’re working with other people (ie. thumbnail is more obvious than “t”). I’d never seen the txp:image=xt before though.

Definitely bookmark the tag listing at Textbook — it is the reference for Textpattern tags.

Last edited by jm (2007-03-31 19:03:07)

Offline

#4 2007-03-31 19:16:59

bzx
Member
Registered: 2007-01-11
Posts: 15

Re: Image thumbnail - useful tip - should be posted in the faq

Els wrote:

<txp:image id=“1t” />
I didn’t know that :)
If it’s an article image you can also use (in the article form) <txp:article_image thumbnail="1" />.

haha :) nice trick eh ? :) figured it out by looking at generated thumbnail image properties – it said “1t” so i thought i’d give it a try – it worked..
anyway, i agree that <txp:thumbnail id=“1” /> is way more intuitive – and i will stick to that.

thanks Els and jm!
peace

Last edited by bzx (2007-03-31 19:18:04)

Offline

#5 2007-04-01 03:09:20

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Image thumbnail - useful tip - should be posted in the faq

You’d never hear about it because it is hackish (may cease to work entirely), and as mentioned, unnecessary.

Offline

Board footer

Powered by FluxBB