[pmwiki-users] New Input Select -- populate drop down from single page content?

Sivakatirswami katir at hindu.org
Sat Dec 16 22:05:42 CST 2006


OK, taking a moment to check out the new input features. Marvelous!

The group page navigator solves the problem of long lists on pages...
That's soooo good. I would use that right away...

Questions:

1. Is this stable? Can I upgrade PMwiki today, use that mark up and not 
have to fix input forms next month?
(Caveman, are you lurking? will this break current ZAP forms?)

2. I'm interested in the option to populate the option drop down select 
menu with a series of items that would be maintained on a separate wiki 
page.  You have an example for groups,

(:if false:)
[[#dropdownlist]]
(:input select name=n {=$FullName} "{=$Name}":)
[[#dropdownlistend]]
(:if:)

(:pagelist fmt=#dropdownlist group=Test:)

But could contents of a single page  become the pull down menu items?

My specific use would be: and possibly there are various way to tackle it:

I want the pull down option select list to display, some, but not All 
groups in the wiki....
i.e. wiki might have groups

Chapatis
Oranges
Volcanoes
Volvos
Bananas
GraniteCarving

But I want want a drop down menu with links only tothe "food" groups

Chapatis.Chapatis
Oranges.Oranges
Bananas.Bananas

I thought the easiest way to maintain this would be to have a single 
page with the
groups (it could be any list though... alpha beta gamma) you want to 
appear in the drop down menu.
instead of having to iterate these in the page list declarations. This 
would allow a naive user to
control the content of the pull where she might be otherwise 
trepidatious about editing

group=*,-Volvos,-GraniteCarving,-Volcanoes

Instead, just edit a page to contain:

Chapatis
Bananas
Oranges

and the pull down now show a new input selection list.

Sivakatirswami
www.himalayanacademy.com




More information about the pmwiki-users mailing list