Question
I create a new topic using a form. The resultuing URL evaluates like follows:
.../cgi-bin/edit/Support?topic=AbcDef&templatetopic=Template&topicparent=WebHome
I have created a template to be taken as master - it works. So far so good.
But one thing i want to recreate in my template topic which is done when giving no teplate in the URL. It is the "-- Main.WikiName - date" line.
I tried to specify
"-- %WIKIUSERNAME% - %SERVERTIME{"$day $month $year}% <br />"
but no complete success. The wiki user name is correctly replaced by the variale contents in the edit box, but not the time.
Any ideas ?
- TWiki version: 1 Dec 2001
- Web server: Apache
- Server OS: SunOs 2.7
- Web browser: Netscape 4.78 (NT)
- Client OS: Win NT 4 (SP5)
--
PetricFrank - 16 May 2002
Answer
write:
-- %WIKIUSERNAME% - %DATE%
These are the only two variables which currently get expanded at topic creation time.
--
PeterThoeny - 16 May 2002
Maybe we could introduce an % EXPAND{}% variable through which the user could designate any variables that they wish to have expanded at creation time.
--
MartinCleaver - 11 Aug 2003
Good idea. Time for
EnhancementRequest. See related
MoreExpansionInTemplateTopic,
MoreExpansionInTemplateTopic,
ExpandUrlParamForNewTopics
--
PeterThoeny - 12 Aug 2003