Where is the "Tags OnClick" Macro?

61 views
Skip to first unread message

Mohamed Amin

unread,
Sep 1, 2019, 8:38:16 PM9/1/19
to tiddl...@googlegroups.com
Dears,

In any Tiddler that has a tag, whenever we click on that tag (the orange button) there is a drop-down menu appeared that contains the name of that tag and all tiddlers that tagged by it.

My question is: How can I customise that menu? where is the macro for its OnClick action?

For Example, Suppose I've a tag that tagging a lot of tiddlers and I need to arrange them (in that menu) by "modified data"

------
P.S.: Please also consider this question, 
As a beginner, I found it's hard somehow to search in "google group" (for example, I failed to get an answer to the above question , but I still have a feeling that it's already exist), so what is the best practise to search for some answers in this group? please take my above question as an example to show me how to get an answer to my future questions

Thanks in Advance

TonyM

unread,
Sep 1, 2019, 9:14:40 PM9/1/19
to TiddlyWiki
Mohammad,

It tends to be easier to make a tiddler with a list with in it if you want to manage larger numbers of tiddlers.

However this is how I look for what you ask

The Tag tiddlers appear in the view template
The Tag $:/tags/ViewTemplate deterims if it appears on the view template
Looking at this tag you see 

$:/core/ui/ViewTemplate/tags is on the view template to display tags

Opening 

$:/core/ui/ViewTemplate/tags we see

<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-tags-wrapper"><$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/></div>
</$reveal>
We see it uses the template $:/core/ui/TagTemplate

Opening $:/core/ui/TagTemplate
I see this is where the popup is defined
And placing some text after the <hr> appears in the popup.

I suggest writing an alternative 
$:/core/ui/TagTemplate eg $:/my/TagTemplate

and use it as follows
{{tagname||$:/my/TagTemplate}}

or using currentTiddler
{{||$:/my/TagTemplate}}


Regards
Tony


On Monday, September 2, 2019 at 10:38:16 AM UTC+10, Mohamed Amin wrote:
Dears,

In any Tiddler that has a tag, whenever we click on that tag (the orange button) there is a drop-down menu appeared that contains the name of that tag and all tiddlers that tagged by it.

My question is: How can I customise that menu? where is the macro for its OnClick action?

For Example, Suppose I've a tag that tagging a lot of tiddlers and I need to arrange them (in that menu) by "modified data"

Thanks in Advance

Mohamed Amin

unread,
Sep 2, 2019, 4:34:38 AM9/2/19
to TiddlyWiki
Thanks a million TonyM, I really appreciate your support and the way to show me (and other beginners) how to "think" while working with TiddlyWiki

Worm Regards
Reply all
Reply to author
Forward
0 new messages