Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-06 13:38:21

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

TXP-only comments in code

This is a small suggestion that could be wrapped in the core system or a plugin, but I think it would be great if you could add TXP-only comments to the code. For instance, on a page or form, you could have something like:

<h3><txp:permlink><txp:title /></txp:permlink></h3> [[-- this makes the title linked --]]
<p><txp:posted /></p>

The comment in [[-- this makes the title linked --]] would be stripped out before going to HTML. This would help in development since designers could mark up a document but not have the info appear in a webpage.

Possible? Dumb?

> Edit. Minor change to title and transfer of topic to the ‘How Do I’ Forums
> colak


Kevin
(graphicpush)

Offline

#2 2007-04-06 14:13:47

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

Re: TXP-only comments in code

You can already do that with the anc_hide plugin

Offline

#3 2007-04-06 14:14:36

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: TXP-only comments in code

This does already exist. It is called anc_hide.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#4 2007-04-06 15:05:42

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: TXP-only comments in code

Incredible. Thanks. That is exactly what I was looking for.


Kevin
(graphicpush)

Offline

Board footer

Powered by FluxBB