[pmwiki-users] empty pagelist options
Patrick R. Michaud
pmichaud at pobox.com
Sat Jul 26 02:23:29 CDT 2008
On Tue, Jul 22, 2008 at 03:14:01PM -0700, adam overton wrote:
> i've been passing information to my pagelist templates via various {$
> $options}
> the problem i'm running into is that if i were to leave the option
> out of a template, i'd expect it to return an empty string, or
> something like that... but instead, it's popping up as a "{$
> $myOption}", as a string
>
> (:pagelist ... myOption1="blah" fmt=#testList :)
> with a pagelist template containing {$$myOption1}, spits out "blah"
>
> (:pagelist ... fmt=#testList :)
> with no mention of myOption1 in the pagelist, but using the same
> pagelist template, spits out "{$$myOption1}" wherever it comes across it
>
>
> is it possible to have this "fail" silently, or to be replaced with
> an empty string "" if not used?
Yes, I've had this come up in a couple of places also, and I think
it needs to be a core change. I'll look into it for the next
release.
Pm
More information about the pmwiki-users
mailing list