This question about Using an extension: Answered

TOPICCREATE macro is not interpreted

I'm trying to create template topic, which contains some sub-topics. My idea is to create and include new sub-topics automatically:

<!--- Uncomment following line to automatically create topic --->
<!--- %TOPICCREATE{template="KeyValuesTableTemplate" topic="%TOPIC%SpecificTable"}% --->
%TOPICCREATE{template="KeyValuesTableTemplate" topic="%TOPIC%SpecificTable"}%

<!--- Now, let's include new topic --->
%INCLUDE{"%TOPIC%SpecificTable"}%

Unfortunately, regardless if I use 'Save' or 'Save and continue' button (NatEdit enabled), TopicCreate macro is not interpreted. TopicCreatePlugin is enabled in bin/configure.

-- MateuszKDzior - 21 Jul 2015

Looks like Apache server restart, resolved my issue:

sudo service apache2 restart

(Why to activate plugin I need to restart server...)

Anyway, is using this (TopicCreate) macro the best choice? It is quite old and migrated from TWiki, so maybe there's a better solution?

-- MateuszKDzior - 21 Jul 2015

If you are using mod_perl or fastcgi, then you may need to reload apache to refresh the configuration after configuration changes. Other than that, I'm unfamiliar with the TOPICCREATE macro.

-- GeorgeClark - 22 Jul 2015

I've installed an run the unit tests on TopicCreatePlugin on Foswiki 2.0. It had some issues with new perl (unescaped { in regular expressions), so I've fixed those issues. And also added some utf-8 data to the topic and attachment names, and the tests are all passing.

I'll release a new version of the extension.

-- GeorgeClark - 22 Jul 2015

Thank you, I'm changing status to 'Answered'.

-- MateuszKDzior - 22 Jul 2015
 

QuestionForm edit

Subject Using an extension
Extension TopicCreatePlugin
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r4 - 09 Sep 2015, MichaelDaum - This page was cached on 16 Dec 2017 - 22:32.

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