Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Not display tags if no entry
Hi
I have a form set up like this for one of my pages:
<div style=“padding-bottom: 30px;”>
<h1><txp:title /></h1>
<h2><txp:excerpt /></h2>
<div><txp:hak_article_image link=‘0’ /><br clear=“all” /></div>
<txp:body />
<div class=“filedl”><txp:upm_article_file_list form=“file-articles” break=“li” wraptag=“ul” />
</div>
</div>
The problem is that sometimes there may not be an <txp:excerpt /> or maybe no images – but the tags still shows.
Is there a way not to display the tags if nothing is entered?
Offline
Re: Not display tags if no entry
Offline
#3 2007-04-11 06:00:31
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
Re: Not display tags if no entry
Thanks Guys – if_excerpt fixed this one as I had already started to alter the css to make the necessary changes – but chh_if_data looks awesome – is there nothing Textpattern can’t do!!!
Offline
Pages: 1