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 <matabele.b...@gmail.com> wrote: > 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 trouble with one of my macros, and I'm not sure why. >> >> Here is the code: >> \define empire_species(faction) >> !!Species >> >> <$list filter="[tag[empire_event]faction[$faction$]sort[year]]"> >> <$set name=theyear value={{!!year}}> >> <$list filter="[tag[species]planet{!!planet}]" > >> *<$link to=<<currentTiddler>> > >> <<currentTiddler>> >> </$link>(<<theyear>>) >> >> </$list> >> </$set> >> </$list> >> \end >> >> This is supposed to get a list of tiddlers tagged empire_event whose >> faction field matches the input, then get a list of species whose planet >> field matches the planet field of the empire event. What it's actually >> doing is grabbing a list of species that don't have a planet field defined >> yet and appending the desired result of this macro to that list. >> >> Does anyone know what I need to change to keep this from grabbing species >> that don't have the planet field? >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/NHN3h62TOz0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > tiddlywiki+unsubscr...@googlegroups.com. > To post to this group, send email to tiddlywiki@googlegroups.com. > Visit this group at https://groups.google.com/group/tiddlywiki. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/3dade6f1-62a5-4a27-8fb2-29b7008d3a93%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/3dade6f1-62a5-4a27-8fb2-29b7008d3a93%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- David Allen -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CALaYjLijF2bGpgK7dSRrAwGet%3DHmqtEnjQP9Uj6qJvm_XYQBYg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.