Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Pages: 1