SID-00419: How to hide variable definition in Topic
| Status: |
Answered |
TWiki version: |
4.0.5 |
Perl version: |
5.10.0 |
| Category: |
CategoryVersionControl |
Server OS: |
Linux 2.6.27.23 |
Last update: |
17 years ago |
1. I create a topic having a variable definition (revision 1):
%SERVICE% Todo List
2. To hide the variable definition, I add an html comment (revision 2):
<!--
-->
%SERVICE% Todo List
3. I change my variable from B to C (revision 3):
<!--
-->
%SERVICE% Todo List
4: Result, the historic between revision 2 and 3 is lost. Both revision have now the last definition:
Questions:
Is it normal?
How can I hide the section where I defined variables used by the all topic?
If a defined it as a section, I will not be possible to INCLUDE it in an other topic. Normal?
Thank's
JM
--
TWikiGuest - 2009-07-15
Discussion and Answer
Variables defined at topic level have effect only on that topic. That is, old values in topic history have no effect when looking at an older revision, and variables in included topic have no effect.
If you want variables to take effect over several topics define it in the WebPreferencs of that web, or in the site-wide Main.TWikiPreferences.
Alternatively, you can use
SpreadSheetPlugin variables (
$SET ,=$GET=), they retain old value in history. They also can be changed several times within a page (top to bottom), and across included topics. See for example
SpreadSheetRollupTest.
--
PeterThoeny - 2009-07-16
Peter,
thank's for your help. I tested your solution with the
SpreadSheetPlugin, and it works.
JM
--
TWikiGuest - 2009-07-16
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.