[tw] Re: Macro is showing both tiddlers without a field and tiddlers whose field matches input

2016-01-02 Thread Eric Shulman
On Saturday, January 2, 2016 at 6:16:15 PM UTC-8, David Allen wrote: > > <$list filter="[tag[species]planet{!!planet}]" > > Does anyone know what I need to change to keep this from grabbing species > that don't have the planet field? > Try adding the "has[fieldname]" filter, like this (untested)

Re: [tw] Re: Macro is showing both tiddlers without a field and tiddlers whose field matches input

2016-01-02 Thread David Allen
Never mind, figured it out. I had some events that didn't get formatted correctly, so the value for planet that was passed into the loop was empty, resulting in every species that didn't have a planet field being shown. On Sat, Jan 2, 2016 at 10:02 PM, David Allen wrote: > The first list widget

Re: [tw] Re: Macro is showing both tiddlers without a field and tiddlers whose field matches input

2016-01-02 Thread David Allen
The first list widget, which gets empire events with the given faction value, works fine. The problem is the inner list widget. On Sat, Jan 2, 2016 at 9:02 PM, Matabele wrote: > Hi > > Try adding the filter as a separate run: > > <$list filter="[tag[empire_event]] +[faction[$faction$]sort[year]

[tw] Re: Macro is showing both tiddlers without a field and tiddlers whose field matches input

2016-01-02 Thread Matabele
Hi Try adding the filter as a separate run: <$list filter="[tag[empire_event]] +[faction[$faction$]sort[year]]"> <$set name=theyear value={{!!year}}> <$list filter="[tag[species]] +[planet{!!planet}]" > regards On Sunday, 3 January 2016 04:16:15 UTC+2, David Allen wrote: > > Hi. I'm having trou

[tw] Re: Macro is showing both tiddlers without a field and tiddlers whose field matches input

2016-01-02 Thread Matabele
Hi There are no 'faction[]' or 'planet[]' filter operators -- looks to me, that you should be using the 'field[]' operator: <$list filter="[tag[empire_event]field:faction[$faction$]sort[year]]"> <$set name=theyear value={{!!year}}> <$list filter="[tag[species]field:planet{!!planet}]" > regards