Hey Ivan, Sure! The code for a simple version of the "Report" tiddler:
<$list filter="[tag[Fruit]]" variable="currentFruit">
! <<currentFruit>>
<$list filter="[tag<currentFruit>tags[]] -[<currentFruit>]"
variable="currentVariety">
!! <<currentVariety>>
<$list filter="[tag<currentFruit>tag<currentVariety>]"
variable="currentReview">
!!! <<currentReview>>
<$transclude tiddler=<<currentReview>>/>
</$list>
</$list>
</$list>
You can test this on Tiddlywiki.com if you import the following testing
tiddlers (attached as a JSON file)
On Thursday, August 9, 2018 at 10:41:22 AM UTC-5, Ivan Aparicio wrote:
>
> Hi All,
>
> I'm trying to write a filter that will put together a report with headings
> based on tags. As an example:
>
> - 2 types of tiddler: Fruit tiddlers and review tiddlers.
> - Review tiddlers are tagged with the name of the fruit (say Apple)
> and the variety (say Fuji, Granny Smith)
>
> I would like a report tiddler for each fruit that will list reviews under
> a heading for each variety.
>
> So for example:
>
> =Apple=
> ==Fuji==
> Great! Loved the taste, and crunchiness!
> Very good; nice peel.
> ==Granny Smith==
> Only liked the colour, so will not be buying again
> Good size for the price!
> Good value, but do not use for juice!
>
> Is this even possible? Has someone done something similar?
>
> Thanks for reading!
>
>
--
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/c4aede01-cc44-4940-bdbb-16937b26ac6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
fruits-review-test.json
Description: application/json

