Tags:
create new tag
, view all tags

Question

I've got a page with a comment box, which sends the entered comment to another page using the Target attribute. The target page is not to be viewed by everyone so has an ALLOWTOPICVIEW attribute set. My problem is that whenever anyone enters a comment in the first page, they are automatically taken to the target page. Actually, they are displayed the 'not allowed' error because of the ALLOWTOPICVIEW attribute.

How can I stop the Comment plugin redirecting people to the target page? I can't put a redirect on the target page as the ALLOWTOPICVIEW will kick in, generating the error message.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache/2.0.52
Perl version: 5.8.5
Client OS: Windows XP
Web Browser: Firefox
Categories: Plugins

-- HelenJohnstone - 22 Sep 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

The redirect is the outcome of the save that is done when the comment is added. I'm not aware of any way to change the target of the view after the save is complete. It would require quite extensive code changes (to the core, not just to the plugin). frown

-- CrawfordCurrie - 26 Sep 2006

 
Change status to:
Topic revision: r2 - 2006-09-26 - CrawfordCurrie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.