[pmwiki-users] ConditionalMarkup for prompted user input

pmwiki pmwiki at ben-amotz.com
Sun Feb 12 15:11:34 CST 2006


What do you think of the idea of providing a condition (and variable) 
that allows ConditionalMarkup to respond to a user prompt?

(1) A variable with a clear generic name, such as userprompt, could be 
defined with an array of generic values, maybe simply the numeric digits 
0 to 9, with a known default value, such as 0.

(2) The user could be prompted to change the default value of the 
variable with a link, as with ViewModes and SkinChange, e.g.

[[{$Name}?userprompt=1| Show me more]]

(3) The ConditionalMarkup would test for the corresponding condition for 
example:

(:if userprompt 1:)
Here is the additional information...
(:if:)

I set up a page testing the basic concept using existing tools 
(ViewModes and the variables and values it allows).  Please feel free to 
take a look and add your comments (there, or here).

Thank you for all the great work that you have done with PmWiki.

Pico








More information about the pmwiki-users mailing list