Do not edit this topic. See BugReports to create a new bug %STARTTEMPLATE% some template text %ENDTEMPLATE% * put some access commands here to prevent editing except by template adminsComments? -- JohnRouillard - 07 Aug 2002 IIUC, it's enough if warning "Do not edit this topic - CANCEL edit and do not save" is visible in edit. So it can be done using standard HTML comment tag (
<!-- HTML comments --> ), like test warning below:
Warning above is HTML comments, visible only in edit. Is it good enough for what you wanted?
-- PeterMasiar - 15 Aug 2002
This happened a few months ago as well - I did put some warning text that was visible in View mode as well but it was taken out. Might be simplest to make it editable only by TWikiAdminGroup.
-- RichardDonkin - 15 Aug 2002
I did a different approach: The %NOP% variable gets already removed from the template topic at the time when a topic is created. Spinning this further:
TWiki has now a new %NOP{ ... }% variable that does this:
| Topic view: | %NOP{ and }% get removed, but content inside curley brackets is visible |
| Topic creation based on template topic: |
%NOP{ ... }% gets removed, including content |
%NOP{ ... }% can span multiple lines.
}% pattern is non-greedy, that is, it stops at the first occurance. That means variables with parameters cannot be used inside NOP. %NOP{ ... }%: Insert a %NOP% between } and %. Silly example: %NOP{ %GMTIME{"$year"}%NOP%% }%.