Item9358: newtopic Value of %TOPIC% within the web creation message. Optionally used in some skins to signify a non-default home topic.
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: n/a
System/CommandAndCGIScripts#A_61manage_61 mentions the
newtopic
param for manage cgi - I don't really know what its refering to, nor if it works as whoever does use it expects.
needs test, docco and ??
--
SvenDowideit - 20 Jul 2010
It appears that newtopic is used to redirect to when creating a web. It's a hidden field on the create a new web form in
ManagingWebs and is passed in as a hidden param from the url.
(Well that's what it seemed to do from a quick look at the code. But it doesn't do anything that I can figure out. I've passed in new and existing topic names, and confirmed that the field was posted. But no effect that I can find.)
The code executed in UI::Manage is:
# everything OK, redirect to last message
throw Foswiki::OopsException(
'attention',
status => 200,
web => $newWeb,
topic => $newTopic,
def => 'created_web'
);
}
If the
created_web
template in
messages.tmpl
did something with it, it could be offered as another option to click.
--
GeorgeClark - 15 Mar 2011