Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » ignore tag?

#1 2007-03-01 12:12:03

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

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

#3 2007-03-01 12:25:14

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

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

#5 2007-03-01 12:41:04

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

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

#6 2007-03-01 12:47:11

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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

#7 2007-03-01 13:35:07

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: ignore tag?

There already is a plugin to do this: anc_hide

Offline

  1. Index
  2. » How do I…?
  3. » ignore tag?

Board footer

Powered by FluxBB