SID-01051: Remain on page after included comment thread page is updated
| Status: |
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
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.