[pmwiki-users] Drop down code

Nicholas Buttle nicholas_buttle at yahoo.com
Tue May 1 06:02:17 CDT 2007


Hi

there was a request for the drop down code.

Here it is.  Moslty provided by The Editor.  It
requires ZAP, zapconditionals and zap markup.

cheers

Nicholas

**************************************************

{(list {$:mylist}|[[~{item}]] ^ [[<<]] )}

(:zapform:)
(:messages:)

(:if false:)
[[#dropdownlist]]
(:input select name=SocialsName "{=$Namespaced}":)
[[#dropdownlistend]]
(:if:)
(:pagelist fmt=#dropdownlist group=Profiles:)

(:input submit button "Add Me":)
(:input submit button "Drop Me":)
(:zap if1="equal '{button}' 'Add Me' ?
mylist=+{SocialsName}":)
(:zap if2="equal '{button}' 'Drop Me' ?
mylist=-{SocialsName}":)
(:zap mylist="":)
(:zap savedata="mylist":)
(:zapend:)


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the pmwiki-users mailing list