Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-08-18 09:51:11
- thijsma
- Member
- Registered: 2008-08-18
- Posts: 13
thumbnail= "1" won't work
<txp:article_image thumbnail="1" />
for some reason textpattern don’t picks out my thumbnails but just keep showing the large images?
how come?
Last edited by ruud (2008-08-18 10:12:33)
Offline
Re: thumbnail= "1" won't work
Can you provide an URL to a page that demonstrates the problem and switch your website status to ‘debug’ (admin tab -> preferences).
Offline
#3 2008-08-18 11:43:56
- thijsma
- Member
- Registered: 2008-08-18
- Posts: 13
Re: thumbnail= "1" won't work
http://www.thijsma.nl/?q=gert
status = debug
this is my used module:
<div class=“entry”>
resultaat:
<txp:article_image class=“resultimg” thumbnail=“1” />
<span class=“infoline”><txp:posted /> <txp:category1 title=“1” link=“1” /> <txp:category2 title=“1” link=“1” /></span>
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:search_result_excerpt />
</div>
Last edited by thijsma (2008-08-18 11:44:47)
Offline
Re: thumbnail= "1" won't work
the thumbnail attribute can only work if you just use the number of the image as the article_id. I suspect you entered a (relative) URL ‘/images/36.png’ in the article_image field instead of just ‘36’
Offline
#5 2008-08-18 12:14:07
- thijsma
- Member
- Registered: 2008-08-18
- Posts: 13
Re: thumbnail= "1" won't work
i’ve entered the full path
ow volgens mij spreek je ook gewoon nederlands :P…
bedankt foutje… ik kopiërde altijd de volledige url van de “grote” afbeelding, maar je moet dus alleen het nummer hebben :)
Last edited by thijsma (2008-08-18 12:22:22)
Offline
Re: thumbnail= "1" won't work
If the article_id refers to an image managed by TXP on the admin tab, using only the ID number allows you to use the full functionality of the txp:article_image tag: thumnails and having the title and alt attribute filled automatically. In other cases, when the URL refers to a non-TXP-managed image (external, for example) or if you don’t need a thumbnail or title attribute or want an empty alt attribute, you can use a full URL (which is slightly faster, because it saves an SQL query to fetch the image information)
PS. Ik spreek inderdaad Nederlands ;)
Offline
Pages: 1