Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-11 02:26:04

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

#2 2007-04-11 05:36:24

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

Re: Not display tags if no entry


Alex

Offline

#4 2007-04-11 08:08:17

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

Board footer

Powered by FluxBB