When creating a topic from a template, can I make it so that %MACROs%
are expanded on save?
Example
%STARTSECTION{type="expandvariables"}%
[[%WIKIUSERNAME%][%QUERY{'%WIKIUSERNAME%'/FirstName}% %QUERY{'%WIKIUSERNAME%'/LastName}%]]
created this topic at %SERVERTIME% in %WEB% web when there were %SEARCH{"1" type="query" nonoise="on" format="" footer="$ntopics"}% topics in it
%ENDSECTION{type="expandvariables"}%
There are currently %SEARCH{"1" type="query" nonoise="on" format="" footer="$ntopics"}% topics in %WEB%
Note that the SEARCH
and WEB
macros inside the expandvariables
section are expanded on save; whereas the same macros outside of that section, are saved verbatim.
Test
Created topics
Number of topics: 1