create new tag
, view all tags

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 | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2002-04-24 - AndreaSterbini
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.