Experiments and Documentation relating to CFADRIANGADGETINCLUDE variable
This page is useful for reference, but really documents why the mildly arcane
CFADRIANGADGETINCLUDE variable was created and has been used extensively by
me in my Include pages. This page is not anything anyone should actually include.
--
AdrianPepper - 26 Oct 2010
CFADRIANGADGETINCLUDE is more of an experiment.
_If you put %CFADRIANGADGETINCLUDE% in the text of an included page
it renders as a link to the page which is included. This is convenient
for readers who want to modify something, or just want to see the inclusion
in isolation._
Amazingly, the value of TOPIC happens
to be the one I want.
- Set CFADRIANGADGETINCLUDEX =
- Set CFADRIANGADGETINCLUDEY =
Bah. I cannot make this work.
You can cut and paste the first two lines to make a gadget which will allow readers
to find the current page if it is included by another.
I am certainly welcome to suggestions to make the gadget, as it is, more intuitive.
And would be delighted if someone else could tell me how to either create variable
which will expand to its value appropriately, or create a working INCLUDE topic.
I don't think INCLUDE can be made to work, however. The TABLE is a plugin.
Of course, I don't need to use a TWiki table, or even a table at all. But the next
problem would be to get TOPIC variable to expand to correct value. I don't think
TWiki has generalized expansion delay when evaluating variables.
--
AdrianPepper - 17 Mar 2010
P.S. Do other people really like starting all their lines and paragraphs with spaces?
I find it annoying to do, and am indifferent about how it reads.
Later...
Hurray!
I added to
WebPreferences the CFADRIANGADGETINCLUDE which gives the following...
--
AdrianPepper - 18 Mar 2010
However, further experiments in this page demonstrate that the scope of variables
is limited (in general) to the file in which they are defined. I.e. I cannot set
variables in a %INCLUDE% file and use them later in the file which does the
%INCLUDE%. Apparently.