Hey, I got it to work! Just changed "[is[current]tag[foo]]" to "[is[current]]" and added the list filter on the inside one. I thought Jed was saying my list filter needed to go in place of tag[foo].
See http://giffmex.org/experiments/daves.dumpster.static.html#Notetaking%20tools for the results. Thanks Jed and Mark! On Sat, Nov 26, 2016 at 6:25 PM, 'Mark S.' via TiddlyWiki < [email protected]> wrote: > Hi Dave, > > I think you need to explain what's not working for you. I stuck Jed's code > into a template, added in your code and stylesheet, created a tiddler > tagged "foo" and another tiddler that linked to it, and got the results as > attached. Everything seems to be working. > > In Jed's code, the first filter makes sure that the template is only being > applied inside tiddlers tagged "foo". The second filter makes sure that > there are backlinks to display. If there are no backlinks to the tiddler, > nothing is displayed. The inner list (which I substituted with your code) > displays the list of backlinks. > > Good luck! > Mark > > > > > On Saturday, November 26, 2016 at 3:23:35 PM UTC-8, David Gifford wrote: >> >> Hi Jed >> >> Thank you, though I confess I am too ignorant to understand your example. >> I tried experimenting with it for a while but I am obviously doing >> something wrong. >> >> Also, I forgot to mention that the title will not be on a separate line. >> Below is what I created originally to make it look like I want. It consists >> of two list filters that will all flow together on the same line. The alt >> arrows are the 'titles' I am talking about. >> >> <$list filter="[all[current]tags[]sort[title]]"> ↑ <$link><span >> class="giffbuttonsgreen"><$view field="title"/></span></$link></$list> >> <$list filter="[all[current]backlinks[]sort[title]] >> -[all[current]tags[]] -[all[current]links[]]"> ↔ <$link><span >> class="giffbuttonsblue"><$view field="title"/></span></$link></$list> >> >> CSS: >> >> .giffbuttonsblue >> {padding:2px;background-color:#DDF;padding-left:8px;padding-right:8px;line-height:25px;margin-right:8px;font-size:10pt;} >> >> .giffbuttonsgreen >> {padding:2px;margin-top:30px;background-color:#DFB;padding-left:8px;padding-right:8px;line-height:25px;margin-right:8px;font-size:10pt;} >> >> html body.tc-body a.tc-tiddlylink .giffbuttonsgreen {color:#694;} >> >> What do I need to tweak in your example? It looked like a filter in a filter >> in a filter, and it wasn't clear to me what each part does. Sorry for my >> ignorance! >> >> >> >> On Saturday, November 26, 2016 at 4:36:25 PM UTC-6, Jed Carty wrote: >>> >>> You just put your test inside the conditional part of the template. >>> Something like: >>> >>> <$list filter='[is[current]tag[foo]]'> >>> <$list filter='[is[current]backlinks[]limit[1]]' variable=dummy> >>> >>> >>> !Look at me! I am a title! >>> >>> >>> <$list filter='[<currentTiddler>backlinks[]]'> >>> >>> >>> </$list> >>> >>> >>> </$list> >>> </$list> >>> >>> note that the variable=dummy is needed in the second list widget. It >>> doesn't have to be dummy, but it has to be something. Also replace >>> [is[current]tag[foo]] with whatever filter you want for your conditional >>> part. >>> >> -- > 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/NuE37lXQGfA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > 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/865e30e9-9d18-41cf-a965-c49750b9da58%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/865e30e9-9d18-41cf-a965-c49750b9da58%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- David Gifford Christian Reformed World Missions, Mexico City -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CANE%3DBFKY4qwcAgzn6fqmiDohB4bHQUE6i%2BXJhVGd0pZ96ZSjPg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

