[tw5] Re: Tag-pill as a button

2021-07-07 Thread
Thanks Eric - that's working! Eric Shulman schrieb am Mittwoch, 7. Juli 2021 um 15:11:32 UTC+2: > On Wednesday, July 7, 2021 at 4:05:17 AM UTC-7 S² wrote: > >> I used TagCloud from Eric and added a third option to see only my >> tiddlers: >> >> \define tagcloud_showbytiddler() >> <$list filter="

[tw5] Re: Tag-pill as a button

2021-07-07 Thread Eric Shulman
On Wednesday, July 7, 2021 at 4:05:17 AM UTC-7 S² wrote: > I used TagCloud from Eric and added a third option to see only my tiddlers: > > \define tagcloud_showbytiddler() > <$list filter="[!is[system]tags[]sort[]]"> ><$vars count={{{ [tagging[]count[]] }}}> > <> > > > \end > > This

[tw5] Re: Tag-pill as a button

2021-07-07 Thread Mat
Tones wrote: > Would your suggestion still leave the tagname also in the label?. > If you don't style it to not show, then yes. <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from i

[tw5] Re: Tag-pill as a button

2021-07-07 Thread TW Tones
Mat, Yes, I am looking forward to such opportunities but I wanted to use the <> as normal and sometimes change the label. The solution I have from this thread is good though. Would your suggestion still leave the tagname also in the label?. Regards Tones On Wednesday, 7 July 2021 at 21:42:27

[tw5] Re: Tag-pill as a button

2021-07-07 Thread Mat
Tones wrote: > For example I wanted to have a label on a tag-pill, rather then the tag > name yet have the same tag drop down. Can you suggest a method? Ideally > without modifying the macro? > You could experiment with CSS which, in one sense, is perfect for labels and to "not modify the macr

[tw5] Re: Tag-pill as a button

2021-07-07 Thread
Hello, I used TagCloud from Eric and added a third option to see only my tiddlers: \define tagcloud_showbytiddler() <$list filter="[!is[system]tags[]sort[]]"> <$vars count={{{ [tagging[]count[]] }}}> <> \end This shows me also "$:/tags/Stylesheet"," $:/tags/SideBar", " $:/tags/Pag

[tw5] Re: Tag-pill as a button

2021-07-07 Thread Sebastián Ortega
Thanks Eric for the non-obvious solution. For completeness I tried to use element-tag="$link" hoping that I would get the tag-pill graphic but the functionality of a link. However it looked like a link. Also thanks for the trick about partial overriding core macros. I have some customization t

[tw5] Re: Tag-pill as a button

2021-07-06 Thread TW Tones
Thanks so much Eric, Just what I wanted to know. I assume as long as my tag pill inner is lower on the list of items tagged $:./tags/Macro then it will override the core? Such core macro overrides would be a useful thing, perhaps however we need a mechanism to indicate when this is occurring?

[tw5] Re: Tag-pill as a button

2021-07-06 Thread Eric Shulman
On Tuesday, July 6, 2021 at 4:35:25 PM UTC-7 TW Tones wrote: > I wanted to have a label on a tag-pill, rather then the tag name yet have > the same tag drop down. Can you suggest a method? Ideally without modifying > the macro? > Changing the tag-pill output will, of necessity, require modifyin

[tw5] Re: Tag-pill as a button

2021-07-06 Thread TW Tones
Eric, This is an interesting reuse of the tag-pill macro. Thanks for sharing. The tag macro is not too well documented but seems to have a lot of possibilities/parameters, although not documented. For example I wanted to have a label on a tag-pill, rather then the tag name yet have the same ta

[tw5] Re: Tag-pill as a button

2021-07-06 Thread Eric Shulman
On Tuesday, July 6, 2021 at 9:04:25 AM UTC-7 mehequeda...@gmail.com wrote: > The action I want to run is navigation to a tiddler whose name is stored > in a field. I know how to make it work with a button: > \define actions() <$action-navigate $to={{!!source_type}}/> > <$button actions=<>>Click m

[tw5] Re: Tag-pill as a button

2021-07-06 Thread Mat
Just a guess but maybe this part {{!!source_type}} has lost its context (i.e the currentTiddler) and seeks for souce_type in the tag(-tiddler)? I.e what is currentTiddler in the action? One way to test is to add a source_type field in the tag-tiddler to see if it does navigate to there. Again,

[tw5] Re: Tag-pill as a button

2021-07-06 Thread Sebastián Ortega
It works fine for the button but not for the tag-pill. Anyway, hardcoding a concrete name is also not working: \define actions() <$action-navigate $to="Target"/> <$macrocall $name="tag-pill" tag={{!!source_type}} actions=<>/> On Tuesday, 6 July 2021 at 23:14:57 UTC+2 Mat wrote: > Just a guess b

[tw5] Re: Tag-pill as a button

2021-07-06 Thread Sebastián Ortega
I'm resurrecting this thread because it happens to me to be in the same situation: I want to make some tag-pill to execute some action. The action I want to run is navigation to a tiddler whose name is stored in a field. I know how to make it work with a button: \define actions() <$action-navig