Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-26 16:25:44

theLostShirt
Member
From: Hjo, Sweden
Registered: 2006-02-10
Posts: 36
Website

Show image if there is content

Is it possible to make textpattern show or hide a image-link to a specific section, if there is content there and only if it is content in that specific section?

like:

< txp:if_section content=“1” name=“section” >
< txp:image id=“26” / >
< / txp:if_if_section >

Offline

#2 2006-02-26 17:13:09

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Show image if there is content

As a guess, I could imagine that a combination of chh_if_data and article_custom would do the job.

 <txp:chh_if_data><txp:article_custom section="foo" /><img src="bar" /></txp:chh_if_data>

Offline

Board footer

Powered by FluxBB