Tags:
create new tag
view all tags

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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2003-08-12 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.