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 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.

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:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-09-26 - CrawfordCurrie
 
  • 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.