David,

While it is certainly not, as has been said, 'too easy' it is doable.

The tags macros are complex because of how flexible they need to be and how 
many different situations they are used in. It makes it rather difficult to 
figure out what you change to get your desired alternate behaviour.

The tiddler to copy (or edit) is $:/core/ui/TagTemplate

If you edit it you will change how every tag in the wiki behaves. It sounds 
like that is what you want, if not you would need a to use it as a template 
like {{tiddlerToMakeTagOf||ModifiedTagTiddler}}

anyway, put this inside the tiddler $:/core/ui/TagTemplate

The line 

<a href=<<currentTiddler>> target="_blank"><$text 
text=<<currentTiddler>>/></a>

is what sets what is on the list, here it is just a simple link to the 
title of the current tiddler that gets opened in a new browser tab. If that 
isn't what you want either let me know or change the line to be what you 
want.


\whitespace trim
<span class="tc-tag-list-item">
<$set name="transclusion" value=<<currentTiddler>>>
<$macrocall $name="tag-pill-body" tag=<<currentTiddler>> icon={{!!icon}} 
colour={{!!color}} palette={{$:/palette}} element-tag="""$button""" 
element-attributes="""popup=<<qualify "$:/state/popup/tag">> 
dragFilter='[all[current]tagging[]]' tag='span'"""/>
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" 
position="below" animate="yes" class="tc-drop-down">
<$set name="tv-show-missing-links" value="yes">
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
</$set>
<$list 
filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]" 
variable="listItem"> 
<$transclude tiddler=<<listItem>>/>
</$list>
<hr>
<$list filter='[tag<currentTiddler>]'>
<a href=<<currentTiddler>> target="_blank"><$text 
text=<<currentTiddler>>/></a>
</$list>
</$reveal>
</$set>
</span>


To use this in a list put it in some other tiddler, I am assuming you call 
it ModifiedTagTiddler, then make your list of tags like this:

<$list filter=<<whatever filter you are using>>>
{{||ModifiedTagTiddler}}
</$list>

hopefully that helps.

On Wednesday, December 16, 2020 at 4:02:19 PM UTC+1 David Gifford wrote:

> Hi Tones,
>
> Alas, what is "too easy" for you is beyond the grasp of mere mortals such 
> as I.
>
> I was not looking for a way to add a button to the tag pill dropdown, as 
> cool as that is. I was looking for a way to alter the functionality of the 
> list of tiddlers at the bottom of the dropdown. I would like each of them 
> to display as the extlink field with no link to the tiddler.
>
> I tried adapting these tiddlers, which looked promising, but that did 
> nothing.
>
> $:/PSaT/tagging-here/ListItemTemplate 
> $:/PSaT/tagging-here/ListItemTemplate 1 
>
> Any ideas?
>
> On Tuesday, December 15, 2020 at 5:49:40 PM UTC-6 TW Tones wrote:
>
>> David,
>>
>> This is too easy to solve.
>>
>> Install my macros attached and click on any tag pill, see how it extends 
>> the tag pill
>>
>> Then Clone $:/PSaT/copy-tag and make your own tiddler 
>> tagged $:/tags/TagDropdown
>> with your desired content.
>>
>> Regards
>> Tones
>>
>> On Wednesday, 16 December 2020 at 10:18:19 UTC+11 David Gifford wrote:
>>
>>> tweak, not twak.
>>>
>>> On Tuesday, December 15, 2020 at 5:17:56 PM UTC-6 David Gifford wrote:
>>>
>>>>
>>>> Ugh. Why does the tagging mechanism have to be so complicated?
>>>>
>>>> I created a list-search for all the tags in a file, where the tags show 
>>>> as tag pills. But I would like the dropdown list of tiddlers (when 
>>>> pressing 
>>>> the tag pill) to show the equivalent of
>>>>
>>>> <$transclude field="extlink"/>
>>>>
>>>> instead of the equivalent of 
>>>>
>>>> <$link><$view field="title"/></$link>
>>>>
>>>> The extlink field has [[name of tiddler|external link]] so when 
>>>> clicking, the link will take you to the external website.
>>>>
>>>> Use case: an index of links to all my Spanish resources on different 
>>>> parts of the Internet.
>>>>
>>>> Thanks in advance for any love.
>>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a573fa25-2e14-4bca-957e-19e91635f849n%40googlegroups.com.

Reply via email to