Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-09 18:16:18

johnny5
New Member
Registered: 2008-09-08
Posts: 8

Conditional for thumbnail

Hi,
Is there a way to check if the article contains a thumbnail?
The idea would be to make sure that if there isn’t a thumbnail then somekind of generic image would be shown instead.

Here are the tags i’m using:

(The page template)
<ul>
<txp:article_custom form=“latest_reviews” section=“reviews” sort=“Posted desc”/>
</ul>

(The latest reviews form)
<li><txp:article_image thumbnail=“1” /><txp:permlink><txp:title /></txp:permlink></li>

I guess there isn’t any </txp:if_thumbnail> command. The only place where i found any reference to it was in the feature ideas area. But i guess there’s a way around it…

Thanks!

Offline

#2 2008-09-09 20:44:34

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Conditional for thumbnail

Have a look at these.

Last edited by uli (2008-09-09 20:45:20)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB