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):
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