[pmwiki-users] (:input select ... :) markup prototype

Hans design5 at softflow.co.uk
Mon Dec 11 18:00:39 CST 2006


Monday, December 11, 2006, 11:27:13 PM, Patrick wrote:

> I've been thinking that it can be:

>     (:input select name=abc 1 alpha :)
>     (:input select 2 beta:)
>     (:input select 3 gamma:)
>     (:input select 4 whatever:)

> So far I've somewhat avoided this because it goes against
> the pattern of most of the other (:input:) markups.  Having
> the single name= parameter as above means that the generic form is

>     (:input select   <value> [<label>]:)

> whereas many (but not all) of the other input controls have the form

>     (:input text     <name> [<value>] :)
>     (:input radio    <name> [<value>] :)
>     (:input checkbox <name> [<value>] :)

> Note specifically (:input radio:), where the name is repeated for 
> each control regardless of the number of buttons, just like select
> does now.

I think I am also in favour of following the example of the other
input controls. But perhaps the name= can be avoided / just be optional
in use (like value= and lable=)?

   (:input select <name> <value> [<label>] :)
   
   (:input select abc 1 alpha:)
   (:input select abc 2 betha:)

Or perhaps you made this possible already.


Hans





More information about the pmwiki-users mailing list