Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache 2.0
Perl version: 5.8.4
Client OS: Windows XP
Web Browser: Firefox
Categories: Documentation

-- TomDoerr - 26 Sep 2005

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Topic revision: r4 - 2005-09-27 - AntonAylward
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.