Question
Is there any kind of %DONTRENDER% and %ENDDONTRENDER% set of keywords that can be used to "comment out" text on a page? An example of this type of text would be a template description of what should be written in a section, but which shouldn't itself appear in the section rendering.
Environment
--
TomDoerr - 26 Sep 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
You don't need special keywords, although you could define one in your preferences topic.
* Set DONTRENDER = <!--
* Set ENDDONTRENDER = -->
or you could simply hide
by using the ordinary HTML comment (
<!--,
-->) tags.
--
FranzJosefSilli - 26 Sep 2005
Above description will hide the text, but it is still visible in the HTML source.
This question comes up once in a while. The TWiki core could be enhanced with a new variable such as
%REMOVE{ this text will be removed }%. This also could be done easily in a Plugin.
--
PeterThoeny - 26 Sep 2005
sigh
Sometimes what Tom asks for backfires.
In one aplication web I put instructions to the effect of "replace this text with your and remove the comment markers".
Some users did replace my text with theirs but didn't see or understand the HTML comment markers and were furious that they couldn't see thir text on the rendered page.
Sometimes instructions are a problem. If you think that the popup ballon text is better wait until users complain about that!
--
AntonAylward - 27 Sep 2005