Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
hide title if no title present
hi,
In my default form, I have the following markup for the article title:
<txp:permlink><h2><txp:title /></h2></txp:permlink>
I have done this because I need the entire line to be removed from output if there is no title, however the nesting of a block element inside an inline one causes validation issues.
Is there any way I can have markup like:
<h2><txp:permlink><txp:title /></txp:permlink></h2>
and still have the h2 removed from the document if there is no title for an article? I tried using a “wraptag” on the permalink, but this had no effect.
Thanks for the help!
n
Offline
Offline
Re: hide title if no title present
…or chh_if_data
Offline
Re: hide title if no title present
thank you both, I ended up gong with chh_if_data because it is more versatile!
Offline
Pages: 1