Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-04-03 22:41:29

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: Use thumbnails for txp:article_image

So…whatever became of this???

Offline

#14 2008-04-03 22:46:53

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

Re: Use thumbnails for txp:article_image

Documentation is good ;).

<txp:article_image thumbnail="1"/>

Offline

#15 2008-04-03 22:55:19

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: Use thumbnails for txp:article_image

While documentation might be good, it still doesn’t work.

I have this plugged into my article form and I don’t see anything on the page:
<txp:article_image thumbnail="1" class="img" /> <h3 class="entry-title"><txp:permlink><txp:title /></txp:permlink></h3> <p class="entry-summary"><txp:search_result_excerpt /></p> <hr /><br class="clearfloat" />

What am I doing wrong? Do I need to create a thumbnail in the image tab, or will it be generated automatically?

Offline

#16 2008-04-03 22:56:13

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

Re: Use thumbnails for txp:article_image

Yes, you have to create a thumbnail when you upload or modify your image.

Offline

#17 2008-04-03 22:57:29

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: Use thumbnails for txp:article_image

lol…I’m stupid!

Offline

#18 2008-04-04 21:40:57

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: Use thumbnails for txp:article_image

Another problem…
According to the documentation, I should be able to turn my link to a <txp:permlink>. Do I lose this capability when I add an image class?

This works:
<txp:permlink><txp:article_image thumbnail="1" /></txp:permlink>

This doesn’t work:
<txp:permlink><txp:article_image thumbnail="1" class="img" /></txp:permlink>

Is there a way to make this work??? Preferably without using plug-ins.!!!!

Last edited by conspirator (2008-04-04 21:41:26)

Offline

#19 2008-04-04 22:09:30

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

Re: Use thumbnails for txp:article_image

Your code produces the following HTML – what are you expecting it to do?

<a rel="bookmark" href="http://txp.dev/third-post"><img src="http://txp.dev/images/2t.png" alt="" class="img" /></a>

Last edited by jm (2008-04-04 22:11:38)

Offline

#20 2008-04-04 22:18:39

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: Use thumbnails for txp:article_image

I want people to be able to click the image and go to the article that the image is associated with.

Offline

#21 2008-04-04 22:25:59

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

Re: Use thumbnails for txp:article_image

That’s what it does. What does it do for you?

Offline

#22 2008-04-05 19:04:11

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: Use thumbnails for txp:article_image

Check it out for yourself… http://www.emqus.com

Offline

#23 2008-04-05 19:58:28

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

Re: Use thumbnails for txp:article_image

Please post a tag trace.

Offline

Board footer

Powered by FluxBB