[pmwiki-devel] Select & Option Dropdown-list Markup

Hans design5 at softflow.co.uk
Mon Dec 11 18:03:20 CST 2006

Monday, December 11, 2006, 8:20:56 PM, Patrick wrote:

> Actually, after thinking about it a bit further, it might be
> better to define

>   $InputTags['jumpform']['name'] = 'n';
>   $InputTags['jumpform'][':html'] =
>     "<form action='{$PageUrl}' method='get'>
>      <select \$InputFormArgs 
> onchange='window.location.href=this.options[this.selectedIndex].value'>
>      \$InputSelectOptions</select>
>      <input type='submit' value='$[Go to Page]' /></form>";

> In this case, the pagelist needed to generate a jumpform is just

>     [[#jumpform]]
>     (:input jumpform value="{=$PageUrl}" label="{=$Title}":)
>     [[#jumpformend]]

> and we don't have to worry about creating any form or submit elements
> because "(:input jumpform ...)" already takes care of that for us.

The pagelist using this fmt will generate as many boxes as pages.....


More information about the pmwiki-devel mailing list