This question about Topic Markup Language and applications: Answered

Possibility to substitute include macro calls by content

Is it possible to automatically replace all include macro calls by topics content? For example having topic with following content:
℅INCLUDE{"topic1"}℅
℅INCLUDE{"topic2"}℅

I would like to have topic1 and then topic2 content copied to this topic on saving my topic.

-- MateuszKDzior - 09 Nov 2015

You can do this during topic creation, but not later after topic exists. Read through TemplateTopics. In the Macro Expansion section, the %STARTSECTION{type="expandvariables"}% section is described. Anything inside that section will be expanded. This is used in the ! WebTopicEditTemplate that serves as the default text for new topics.

-- GeorgeClark - 09 Nov 2015
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 2.0.2
Status Answered
Related Topics
Topic revision: r2 - 09 Nov 2015, GeorgeClark - This page was cached on 06 Jun 2017 - 23:26.

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