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.

  IncludeAdrianIncludeGadget

  IncludeAdrianIncludeGadget
  IncludeAdrianIncludeGadget
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...

IncludeAdrianIncludeGadget

-- 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.

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2010-10-26 - AdrianPepper
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback