The following will list all tiddlers with a Journal tag and extract the 
year number from the title,

   - If you are using the default journal title format DDth MMM YYYY
   - If you were using the created date or a journal date you could use 
   firet[4] rather than last[4]

<$list filter="[all[]tag[Journal]]">
   <$set name=year filter="[{!!title}split[]last[4]join[]]">
        <<year>>   
   </$set>
</$list>

Now wrap this in a button to trigger it, and add an action widget to add a 
tag to each tiddler for the year
For such messages we need to use the fieldmangler widget.
<$button>
<$list filter="[all[]tag[Journal]]">
<$fieldmangler>
   <$set name=year filter="[{!!title}split[]last[4]join[]]">
       <$action-sendmessage $message="tm-add-tag" $param=<<year>>/>
   </$set>
</$fieldmangler>
</$list>
Add tag for year
</$button>

I will give you more soon.
Tones


On Monday, 24 August 2020 17:28:49 UTC+10, TW Tones wrote:
>
> Hi,
>
> So there is a tiddler called 2020 that tags 50 days or it it just a 
> section for all Journals with the year 2020?
>
> Perhaps show us what one of the 200 tiddlers looks like, its tags or title?
>
> If what you want is as we see, in your image there is no reason not to 
> make you own tab, rather than try and play with the tags functions.
>
> We could also add a batch to add a "year" tag to all Journals, then you 
> could use the year tags?
>
>
> Regards
> Tony
>
>
>
> On Monday, 24 August 2020 14:36:00 UTC+10, [email protected] wrote:
>>
>> Here is a screenshot of what I meant haha. The Dates are under Journal 
>> with the number of tiddlers in the tags. Hope you understand! 
>> [image: Screenshot_1.png]
>>
>> On Monday, 24 August 2020 at 11:23:10 UTC+8 TW Tones wrote:
>>
>>> Justine?
>>>
>>> You may need to spell this out in a few more sentences. An example would 
>>> be great, the more you help us understand, the easier it is for us to help 
>>> you.
>>>
>>> Tones.
>>>
>>>
>>> On Sunday, 23 August 2020 17:06:52 UTC+10, [email protected] wrote:
>>>>
>>>>
>>>> So I have a Journal tag and the Tiddlers are tagged between 2017-2020. 
>>>> What I wanted is to have my 2017-2020 tags to be under the Journal tags on 
>>>> my Sidebar so I can be able to browse my tiddlers easily and also have a 
>>>> number of tiddlers that are in the tags. 
>>>>
>>>

-- 
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/70e7ae3a-f559-443f-8d0f-36238ce1d957o%40googlegroups.com.

Reply via email to