Tags:
create new tag
view all tags

SID-01051: Remain on page after included comment thread page is updated

Status: Answered Answered TWiki version: 4.3.2 Perl version: 5.10.1
Category: CategoryPlugins Server OS: AIX Last update: 14 years ago

Hi, I have a TWiki page, lets call it the CURRENT page, that includes, with the %INCLUDE{}% function. , a page with a comment thread plugin. The problem is, is that when I leave comment, I get redirected to the included page instead of remaining on the CURRENT page. So the question, is there a way for a user to remain or be redirected back to the CURRENT page upon leaving a comment in this fashion?

Also, keep in mind I would still want to be able to view the included comment page directly at any time without being re-directed.

Thanks,

Greg

-- GregNeugebauer - 2010-12-07

Discussion and Answer

Use the redirectto parameter to the save script, see TWikiScripts

-- PeterThoeny - 2010-12-07

Thanks, does this require creating a custom comment template then?

Since my included comment topic doesn’t contain a form, I tried placing the redirect in the comment plugin but with no luck:

%COMMENT{type="tableappend" name="redirectto" value="%BASEWEB%.StayOnCurrentTopic"}%

-- GregNeugebauer - 2010-12-08

Yes, you need to custom CommentPlugin template. The BlogAddOn does what you want, e.g. post to a different topic and redirect to the original topic. We have installed that add-on in our twiki.org Blog. The relevant topics are Blog.UserCommentsTemplate and Blog.BlogPostViewTemplate.

-- PeterThoeny - 2010-12-08

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2011-02-21

      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 Remain on page after included comment thread page is updated
SupportCategory CategoryPlugins
TWiki version 4.3.2
Server OS AIX
Web server Apache
Perl version 5.10.1
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2011-02-21 - 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.