r3 - 24 Apr 2002 - 14:23:15 - AndreaSterbiniYou are here: TWiki >  Plugins Web > EditVariablesPluginDev
Tags:
, create new tag

Edit that damned variables easily!

I am implementing a small plugin to add a simple edit interface for variables:

  • Each variable has its definition (almost in the same way of the Forms) as one of the following items:
      * Define VARIABLE = text       | width | <values>
      * Define VARIABLE = textarea   | width | <values>
      * Define VARIABLE = select     | width | <values>
      * Define VARIABLE = checkbox   | width | <values>
      * Define VARIABLE = checkbox+button | width | <values>
      * Define VARIABLE = radio      | width | <values>

Then all variable definitions will be shown as a small FORM for editing:

      * Define VARIABLE = select | 1 | Sex,Drugs,Rock and Roll
      * Set XXX = Rock and Roll

Will be shown more or less like: (non-working example):

    • Set XXX =

Then if you change the value the page is changed and saved.

-- AndreaSterbini - 23 Apr 2002

Sounds interesting... What about page locking? If somebody locked page for edit, I can still view it, and HTML SELECT will be rendered. But I should not be able to save my changes - whey will be wiped out when page is finally saved. Same problem as CommentPlugin has. And same solution: when page is locked, do not render HTML SELECT. And before saving, check if page was not locked in betwwen... I just want to warn you.

-- PeterMasiar - 24 Apr 2002

Good point ... thanks!

-- AndreaSterbini - 24 Apr 2002

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo