This question about Topic Markup Language and applications: Answered

Set variable and use it in included topic

I wish to create a template in which:
  • I set some variables
  • include another topic which will use variables set previously

I have an issue with current topic name.

I set:


 <!--
 * Set ThisTopic = '%TOPIC%'
-->

and then I include another topic, where I try to use variable ThisTopic.

However, ThisTopic returns topic name of the included topic. I've tried to play with delayed expansion, but without success.

Could you help me on this?

Here is my example.

-- MateuszKDzior - 28 Sep 2015

Use VarSET.

-- MichaelDaum - 28 Sep 2015
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 2.0.0
Status Answered
Related Topics
Topic revision: r2 - 28 Sep 2015, MichaelDaum - This page was cached on 18 Dec 2017 - 09:54.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License