Hi Martin!

This is one of those bugs I was afraid of, actually. That there would
be some functionality that got short-shifted in reshuffling where all
the templating features happen. In this case, the info report function
generates it's own array from the target info page and therefore does
not go to the searchPageList function (which is where I just put the
include/exclude/if/type parameters). So actually all of these are lost
to the info report function.

It took a bit of tinkering, but I think I finally came up with the
right fix. First, I separated the searchPageList function into two:
searchPageList and searchPageListPlus. The first chains to the second,
so it won't affect any other functions, but it gives the info function
a chance to jump in at the right time. Meaning now you can use not
only if, but include, exclude, and type. For example, return all
numeric tags or whatever.

In the process I noticed a couple other things.  {+field} and {+value}
did not work in conditions, which would sure make things easier, so I
added that functionality. Second, I noticed {+field} and {+value} only
work in templates, not fmts in info reports. So I added that
functionality as well. It took a bit of thrashing around, but I think
I have it all working now--should reactivate your info reports with no
change to markup. Because the change involved several things, I won't
post a fix here, but will include in the next release. Probably later
today...  I really like the more universal {+field} {+value} template
vars! For example you can now do all of this easily:

[(info report mytag target=info.tags if="inlist 'mytag' '{+value}'"
sort=field template="[[{+field}|+]]: {+value}")]

Cheers,
Dan


On Mon, Sep 7, 2009 at 4:34 AM, Martin<[email protected]> wrote:
>
> Thank you for 3.11.
> I upgraded from 3.09.
>
> It seems that "if inlist" is broken.
>
> [(info report "{p2}" target=info.tags if="inlist 'xxx' '{info.tags::
> {+p}}'" template=xy)]
>
> does not work anymore ...
>
> Greetings, Martin
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to