Thanks Anders Close enough!
so i have this tiddler that lists other tiddlers matching certain Tag criteria , i also have some buttons and a drop list , what i want is to add next to the buttons and the drop list all tags associated with these isted tiddlers so this is how it looks like , i just need to add next to the droplists all tags associated with the test 2 for example , and preferably in the same pill format , hope this makes sense [image: Capture.PNG] [image: Capture2.PNG] On Wednesday, April 21, 2021 at 1:16:46 AM UTC+2 Anjar wrote: > Hi Mohamed, > > I'm not sure I fully understand your question, but here is an example that > produce a table with tiddlers (by letter) to the left and the tags of the > tiddler to the right; perhaps you wanted the opposite..? > > <table> > <$list filter="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"> > <tr> > <th colspan = 2><<currentTiddler>></th> > </tr> > <$list filter="[ sortan[]prefix<currentTiddler>]"> > <tr> > <td style="text-align:right"><<tag>></td> > <td><ul><$list > filter="[title<currentTiddler>tags[]]"><li><<tag>></li></$list></ul></td> > </tr> > </$list> > </$list> > </table> > > Best, > Anders > > mandag 19. april 2021 kl. 06:30:30 UTC+2 skrev mohamed.e...@vodafone.com: > >> Is it possible to display all associated tags with the listed tiddlers >> next to them in the list? >> >> On Wednesday, April 7, 2021 at 2:29:41 PM UTC+2 Anjar wrote: >> >>> Hi, >>> >>> As you've discovered, seemingly simple problems can get wuite complex:) >>> I agree with you that <br/> is a nice solution, or you could wrap it in a >>> <ul> and have each element as a list item >>> >>> For now, I was unable to find a simply way to substring the titles; if >>> there was, you could get the first letter of all titles, make them >>> uppercase, remove duplicates and iterate through them with >>> match:caseinsensitive or something. Maybe it'll be possible in the future! >>> >>> PS I forgot XYZ;) >>> >>> >>> Best, >>> Anders >>> >>> onsdag 7. april 2021 kl. 09:42:10 UTC+2 skrev jn.pierr...@gmail.com: >>> >>>> >>>> Nice solution. I tried it. It is case sensible. My code is not (it was >>>> needed). >>>> >>>> I will try to merge your solution into mine to see what I could achieve >>>> with two imbricated lists. >>>> >>>> Jean-Pierre >>>> Le mercredi 7 avril 2021 à 08:11:28 UTC+2, schlechter...@gmail.com a >>>> écrit : >>>> >>>>> Thanks jn.pierr for your input - I'll check it later. >>>>> In the meantime I found a solution: >>>>> >>>>> <div style="column-count:2;column-rule: 1px solid; color:rgb(204, 204, >>>>> 255);"> >>>>> <$list filter="A B C D E F G H I J K L M N O P R S T U V W Z"> >>>>> >>>>> <h3><<currentTiddler>></h3><$list filter="[ >>>>> sortan[]prefix<currentTiddler>]"> >>>>> <small style="color:rgb(204, 204, 255)"> <<tag>> <$view >>>>> field="published" /> </small> >>>>> *<br>* >>>>> </$list> >>>>> </$list> >>>>> </div> >>>>> >>>>> Stefan >>>>> jn.pierr...@gmail.com schrieb am Dienstag, 6. April 2021 um 21:11:10 >>>>> UTC+2: >>>>> >>>>>> As for listing letters for entries I have tghe following: >>>>>> >>>>>> \define all-initials() >>>>>> <$list filter="[tag[glossaire]]"> >>>>>> <$set name=1st value={{{ [all[current]split[]first[]] }}}> >>>>>> <<1st>> >>>>>> </$set> >>>>>> </$list> >>>>>> \end >>>>>> >>>>>> \define glossaryList() >>>>>> <$wikify name="all-letters" text=<<all-initials>>> >>>>>> <$list >>>>>> filter="[<all-letters>uppercase[]split[É]join[E]split[]each:value[]!is[missing]]" >>>>>> >>>>>> variable="letter"> >>>>>> <$link to=<<letter>>/> >>>>>> </$list> >>>>>> >>>>>> <$list >>>>>> filter="[<all-letters>uppercase[]split[É]join[E]split[]each:value[]!is[missing]]" >>>>>> >>>>>> variable="letter"> >>>>>> <h3><$link to=<<letter>>/></h3> >>>>>> <$set name="entries" filter="[<letter>addprefix[{{]addsuffix[}}]]"> >>>>>> <<entries>> >>>>>> </$set> >>>>>> </$list> >>>>>> </$wikify> >>>>>> \end >>>>>> >>>>>> added twist: make É and E the same entry. letters not used are not >>>>>> seen. This example is with a "glossaire" tag, you would use "people" >>>>>> instead or make it a variable of all-initials macro. the macro to be >>>>>> used >>>>>> is glossaryList (no argument). >>>>>> >>>>>> You would have to adapt it to your needs and language perhaps. >>>>>> >>>>>> note: I have created letterr tiddlers "A"', "B"', "C" etc before >>>>>> hand. I have not yet found out how to create them on purpose (and delete >>>>>> them on purpose too). But they all have the same content (a call to >>>>>> another >>>>>> macro). Some are not used, that's it. >>>>>> Le mardi 6 avril 2021 à 17:59:12 UTC+2, schlechter...@gmail.com a >>>>>> écrit : >>>>>> >>>>>>> Hello Anjar, >>>>>>> >>>>>>> I've adapted your example to generate a list of all my Tiddlers + >>>>>>> "published" field (= date): >>>>>>> >>>>>>> <div style="column-count:2;column-rule: 1px solid lightblue;"><$list >>>>>>> filter="A B C D E F G H I J K L M N O P Q R S T U V >>>>>>> W"><h3><<currentTiddler>></h3><$list filter="[ >>>>>>> sortan[]prefix<currentTiddler>]"> <small style="color:rgb(204, 204, >>>>>>> 255)"> >>>>>>> <<tag>> <$view field="published" /> </small> </$list></$list></div> >>>>>>> >>>>>>> Is there a way to get an output list with only one Tiddler-title per >>>>>>> line? >>>>>>> >>>>>>> Thanks for feedback >>>>>>> Stefan >>>>>>> >>>>>>> Anjar schrieb am Montag, 5. April 2021 um 22:25:39 UTC+2: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Absolutely, here is a quick example: >>>>>>>> >>>>>>>> <div style="column-count:3;column-rule: 1px solid >>>>>>>> lightblue;"><$list filter="A B C D E F G H I J K L M N O P Q R S T U V >>>>>>>> W"><h3><<currentTiddler>></h3><$list >>>>>>>> filter="[tag[People]sort[title]prefix<currentTiddler>]"> <<tag>> >>>>>>>> </$list></$list></div> >>>>>>>> >>>>>>>> The div is just to get three columns. The first list loops through >>>>>>>> all the letters and print each letter (<<currentTiddler>>) as header. >>>>>>>> For >>>>>>>> each letter, you use the same list as before, but add a filter to only >>>>>>>> keep >>>>>>>> titles starting on (prefix) the given letter (note that we have to use >>>>>>>> <currentTiddler> inside filters) >>>>>>>> >>>>>>>> Best, >>>>>>>> Anders >>>>>>>> >>>>>>>> mandag 5. april 2021 kl. 21:11:35 UTC+2 skrev isd196...@gmail.com: >>>>>>>> >>>>>>>>> I have one final question, relating to the list function itself: >>>>>>>>> Is it possible to split the list alphabetically? So that all people >>>>>>>>> whose >>>>>>>>> names begin with A, B, C etc, can be placed in separate lists, >>>>>>>>> despite all >>>>>>>>> being in the same Tag group? >>>>>>>>> >>>>>>>>> Many thanks >>>>>>>>> >>>>>>>>> JK >>>>>>>>> >>>>>>>>> On Sun, 4 Apr 2021 at 19:08, Jax Kovak <isd196...@gmail.com> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Eric, thanks so much! I wasn't sure about the short form of the >>>>>>>>>> list tag being used like that. Excellent! I have my list! Many >>>>>>>>>> thanks! >>>>>>>>>> >>>>>>>>>> Kind regards >>>>>>>>>> >>>>>>>>>> JK >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Sun, 4 Apr 2021 at 18:09, Eric Shulman <elsd...@gmail.com> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> On Sunday, April 4, 2021 at 9:46:38 AM UTC-7 isd196...@gmail.com >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hey PMario, thanks for that, but I'm confused on how to use >>>>>>>>>>>> this. Currently I can use >>>>>>>>>>>> <$list filter="[tag[People]sort[title]]"/> >>>>>>>>>>>> to get a list of the People in the People Tag group, but I >>>>>>>>>>>> can't see how to add the <<Tag>> to it so that each item is >>>>>>>>>>>> listed as a Tag. Could you clarify please? >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> By ending the $list with /> you are using the "short-form" of >>>>>>>>>>> the widget which, by default, outputs the titles of the matching >>>>>>>>>>> tiddlers, >>>>>>>>>>> as links. To display other output (e.g., the title as a tag pill) >>>>>>>>>>> you need >>>>>>>>>>> to use the full <$list>...</$list> syntax, where the content is the >>>>>>>>>>> <<tag>> >>>>>>>>>>> macro, like this: >>>>>>>>>>> >>>>>>>>>>> <$list filter="[tag[People]sort[title]]"> <<tag>> </$list> >>>>>>>>>>> >>>>>>>>>>> Note that inside the body of the $list widget, the value of >>>>>>>>>>> currentTiddler is set to the title of each matching tiddler and the >>>>>>>>>>> <<tag>> >>>>>>>>>>> macro defaults to showing the "currentTiddler" as a tag pill. >>>>>>>>>>> >>>>>>>>>>> enjoy, >>>>>>>>>>> -e >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> 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/uAM0RDmpfrE/unsubscribe >>>>>>>>>>> . >>>>>>>>>>> To unsubscribe from this group and all its topics, send an email >>>>>>>>>>> to tiddlywiki+...@googlegroups.com. >>>>>>>>>>> To view this discussion on the web visit >>>>>>>>>>> https://groups.google.com/d/msgid/tiddlywiki/0882f2c6-49b1-49a2-87c0-e6f953e3599fn%40googlegroups.com >>>>>>>>>>> >>>>>>>>>>> <https://groups.google.com/d/msgid/tiddlywiki/0882f2c6-49b1-49a2-87c0-e6f953e3599fn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>>> . >>>>>>>>>>> >>>>>>>>>> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3d30c1fe-e4a7-4431-8260-632d8df43e88n%40googlegroups.com.