Tags:
create new tag
view all tags

SID-02131: Automatic Watchlist Addition on Topic Creation

Status: Answered Answered TWiki version: 6.0.1 Perl version:
Category: WatchlistPlugin Server OS: Last update: 10 years ago

I'm using the contents of a form to create a new topic however I would like to automatically add the newly created topic to the creators Watchlist.

I'm hoping that it might be clear from what I've tried to do from my attempt below.

%EDITFORMFIELD{ "form" type="submit" value="Submit!" }%
%EDITFORMFIELD{ "SubmissionTime" type="hidden" value="%SERVERTIME{$year-$mo-$day}%" }%
%EDITFORMFIELD{ "topic" type="hidden" value="InnSubAUTOINC00001" }%
%EDITFORMFIELD{ "topicparent" type="hidden" value="FormEntries" }%
%EDITFORMFIELD{ "watchlist_action" type="hidden" value="togglewatch" }%
%EDITFORMFIELD{ "watchlist_topic" type="hidden" value="InnSubAUTOINC00001" }%
%EDITFORMFIELD{ "form" type="end" }%

Any help would be appreciated.

-- Jani Hamalainen - 2015-12-07

Discussion and Answer

Good idea. I don't think this is possible with the current implementation because this plugin requires a %WATCHLIST{...}% variable to toggle the watch state.

The plugin needs to be enhanced with a WatchlistPlugin specific parameter to the save script to toggle the watch state. TWiki is open source - you could enhance and contribute the changes back, or you could hire a TWiki consultant to do that for you.

-- Peter Thoeny - 2015-12-08

Thanks for the info Peter.

At this time I'm far from being capable of modifying any of the Twiki code but you've saved me a lot of time trying to do something that sounds like is not possible at this time.

-- Jani Hamalainen - 2015-12-08

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Automatic Watchlist Addition on Topic Creation
SupportCategory WatchlistPlugin
TWiki version 6.0.1
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2015-12-08 - JaniHamalainen
 
  • 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.