Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
ignore tag?
In my page template I like to have some comment for my self. A little bit like this:
<ignore>here we display the 5 last items</ignore>
<txp:article limit=“5” />
is there a global ignore tag? So that my notes are only shown in the template edit view and not live?
something like the Smarty comment as shown here:
http://smarty.php.net/manual/en/language.basic.syntax.php#language.syntax.comments
Offline
#2 2007-03-01 12:24:21
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: ignore tag?
Why not use <!-- here your comment -->
?
Offline
Re: ignore tag?
Els wrote:
Why not use
<!-- here your comment -->
?
cant people see that in the HTML source code?
Offline
#4 2007-03-01 12:37:21
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: ignore tag?
Yes they can, I didn’t get that you don’t want them to see it, sorry.
Offline
Re: ignore tag?
Els wrote:
Yes they can, I didn’t get that you don’t want them to see it, sorry.
perhaps just a <txp:ignore> plugin.
It could be nice if it was build into txtpattern
Offline
Re: ignore tag?
Any conditional with an always-false condition will suffice, e.g. <txp:if_section name="nada">....</txp:section>
I use this all the time.
Offline
Re: ignore tag?
There already is a plugin to do this: anc_hide
Offline
Pages: 1