You are here: Foswiki>Tasks Web>Item9358 (04 Jan 2015, GeorgeClark)Edit Attach

Item9358: newtopic Value of %TOPIC% within the web creation message. Optionally used in some skins to signify a non-default home topic.

pencil
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: Documentation, FoswikiUIManage
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary newtopic Value of %TOPIC% within the web creation message. Optionally used in some skins to signify a non-default home topic.
ReportedBy SvenDowideit
Codebase 1.0.9, trunk
SVN Range
AppliesTo Engine
Component Documentation, FoswikiUIManage
Priority Enhancement
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 04 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy