[pmwiki-users] Navigator vs Jump Box

The Editor editor at fast.st
Fri Dec 22 03:04:34 CST 2006


On 12/21/06, Sivakatirswami <katir at hindu.org> wrote:
> christian.ridderstrom at gmail.com wrote:
>
> >
> > I think it might be enough to do
> >
> >     (:input form ...:)
> >     (:pagelist ...:)
> >     (:input submit:)
> >     (:input end:)
> >
> > and it should without java script.   It should be possible to get the
> > additional directives into the format #navigator with some if:s
> >
> > cheers
> > /Christian
> OK, good, I would like to avoid the JAVA...
>
> And also eliminate "Submit" requirement on option menu select action.
> (as a designer-author of deskapps, this requirement makes one squirm)
>
> Is that what you are saying might be
> doable with additional directives  in the format #navigator
> construct? I don't want to waste time fiddling with it
> if it simply is not possible...
>
> hmmm. I see this may be doable with zap "select+" ??



If you have zap installed, it is as simple as this:

(:input form:)
(:select+ jump:)
(:option :)Select One
(:pagelist group=YourGroup name=-Group*,-RecentChanges fmt="#jumplist":)
(:selectend:)
(:input end:)

The word jump can be anything--it's just the form name.  Then add this template:

[@
[[#jumplist]]
(:option value="pmwiki.php?n={=$FullName}":)(:keep {=$Name}:)
[[#jumplistend]]
@]

I think it's a little simpler than the one in PmWiki's script file,
but haven't tinkered much with the new "input select" markup yet.

Now that I've thought about it, I realized you could do this just as
well.  Just tried it and it works fine:

[@
[[#jumplist]]
(:if equal {<$Group}:)
(:input form:)
(:select+ jump:)
(:option :)Select One
(:if:)
(:option value="pmwiki.php?n={=$FullName}":)(:keep {=$Name}:)
(:if equal {>$Group}:)
(:selectend:)
(:input end:)
(:if:)
[[#jumplistend]]
@]

for your template and then to create the list, all you'd need would be this:

(:pagelist group=YourGroup name=-Group*,-RecentChanges fmt="#jumplist":)

Again, this only works if you have zap installed. I had planned to
eliminate zap's select box markup when the new forms script came out
for PmWiki, but not sure I will do that till I've played around with
it some.  Pm's markup offers greater flexibility and power, but for
something simple like this, zap's seems a bit more intuitive to me,
and requires less typing.

Cheers,
Dan




More information about the pmwiki-users mailing list