Tags:
create new tag
, view all tags
Editing a page to change the value of a variable is rather unintuitive. Using forms ( la EvEm) may be a solution for variables associated to every page in a web, but it is still difficult to be performed by an average user.

I would prefer to have a wiki syntax to specify a variable. Le me use the "normal" Set syntax.

When I write

   * Set a = 5

I would like to see in the page

a =
(if the page can be edited, of course).

Let us assume that the action of this form is updatevalues

If someone changes the value of the a field in this topic,

a =
and then press a submit button (not shown), updatevalues takes care of "editing" the page, replacing the old value of a with the new one.

In this way one can offer people an easy way of writing input forms with a wiki syntax, maybe setting the same variables with different looks.

Actually, my goal is the following: let people use this approach to specify custom variables; attach a document to the topic, fill in the fields and have these variables magically interpolated into the attached document at download (say, using a specific 'action'). This would allow secretaries to use twiki to publish documents and let user fill-in them using forms, all that without programming.

It is not difficult to write down this plugin, but I would like to have your opinions about:

  1. Is it possible to integrate it seamlessy with the existing code? I mean, leave the "Set a=5" expression in place, and add somewhere in the topic the default value of a, the eventual tooltip, the prompt, and so on..
  2. If I do not need compatibility, which is the simplest syntax that can be used to specify the type of fields? and maybe also some checking, like range control, etc...
  3. Which is the simplest syntax to access a topic's variable?

-- FrancoBagnoli - 25 Mar 2002

Somewhat related to this topic is the EditTablePlugin.

-- PeterThoeny - 12 Apr 2002

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