Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-26 05:55:14

dubh
Member
From: Wellington, New Zealand
Registered: 2004-02-27
Posts: 20
Website

commenting the txp code I put in my forms?

I’m building some new forms for my new site layout… and would like to document some of the logic as I go through some sort of code commenting.

I know I can use HTML comments for this, but this tends to end up leaving the comments throughout the final rendered page. Is there some sort of txp convention or tag that would allow me to document my form code without having it show up in my pages?


Alan Macdougall — http://halfpie.net/

Offline

#2 2006-08-26 06:54:31

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: commenting the txp code I put in my forms?

I think wet mentioned this a little while ago. Just use:

<code>
<txp:if_section name=“nonexistant”>
This does stuff.
</txp:if_section>
</code>

Offline

#3 2006-08-26 08:16:05

dubh
Member
From: Wellington, New Zealand
Registered: 2004-02-27
Posts: 20
Website

Re: commenting the txp code I put in my forms?

Thanks. That’ll work, even though it’s not quite what I had in mind. :-)


Alan Macdougall — http://halfpie.net/

Offline

#4 2006-08-26 16:52:18

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: commenting the txp code I put in my forms?

Hi dubh

This is what you are looking for: txp:anc_hide

Last edited by maniqui (2006-08-26 16:52:30)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB