[pmwiki-users] Generating an array of all group names.
Marc Cooper
gmane at auxbuss.com
Wed Jun 21 12:47:58 CDT 2006
Martin Fick said...
> --- Marc Cooper <gmane at auxbuss.com> wrote:
>
> > > [[#radio]]
> > > (:if equal {<$Group} :)
> > > (:input form method=get:)
> > > (:if ! equal {<$Group} {=$Group} :)
> > > * (:input radio n {=$FullName}:) {=$FullName}
> > > (:if equal {>$Group} :)
> > > (:input submit value="Try It":)
> > > (:input end:)
> > > (:if:)
> > > [[#end]]
>
> :)
>
> > For validation reasons I went with:
> >
> > (:input form "{$PageUrl}":)
>
> Sure
>
>
> > and also changed to:
> >
> > * (:input radio n {=$Group}:) {=$Group}
>
> Yes, I realized this later, that is more what you
> want.
I'm not the OP, but what the heck.
> > Now, I'd like to ask a question: how does PmWiki
> > "know" that the radio
> > buttons are to be used as URLs?
>
> It doesn't. I set the radio button name to n which
> ends up in this case being used the way pmwiki uses
> ?n=pagename. ?n=group is simply appended to the form
> url.
Ah! A little trick. I'm just playing around with forms for the first
time, so this is useful to know.
--
Best,
Marc
More information about the pmwiki-users
mailing list