SID-02131: Automatic Watchlist Addition on Topic Creation
| Status: |
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
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.