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

$_[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 History Action Size Date Who Comment
Perl source code filepm MyPlugin.pm r1 manage 2.7 K 2006-06-08 - 13:49 UnknownUser Source code
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-06-24 - SteffenPoulsen
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.