Tags:
create new tag
, view all tags

Question

I'm writing a simple plugin (source is attached) and if the plugin is activated in a web, where EditTablePlugin is activated too and it has too much rows, then the table will hang. It's like this one:

Datum Thema Kurzbeschreibung Status Wiedervorlage Konzeptbeschreibung
08.05.2006 Twiki RSS Mechanismen implementieren erledigt 23.05.2006  
08.05.2006 Twiki Layout mit mehreren Sectoren/Segment Fenstern später 25.08.2006  
08.05.2006 Twiki Layout mit mehreren Sectoren/Segment Fenstern später 25.08.2006  

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Win XP, SP2
Web server: Apache/1.3.34 (Win32)
Perl version: 5.8.7-5 (Cygwin)
Client OS: Win XP, SP2
Web Browser: Opera, IE, Firefox
Categories: Platform, Plugins

-- AngelGerdzhikov - 08 Jun 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.

$_[0] =~ s/%CREATETOPICSFORM%/$form/ge;

Is not a regular way to do this and could get you into trouble really fast. Normally you would create a local function (i.e. handleForm) in the module and call that:

$_[0] =~ s/%CREATETOPICSFORM%/&handleForm/ges;

Try looking at a few of the exisiting plugins for inspiration! smile

-- SteffenPoulsen - 24 Jun 2006

 
Topic attachments
I Attachment Action Size Date Who Comment
Perl source code filepm MyPlugin.pm manage 2.7 K 2006-06-08 - 13:49 AngelGerdzhikov Source code
Topic revision: r2 - 2006-06-24 - SteffenPoulsen
 
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.