I'll check this out, thank you again!
On Monday, 24 August 2020 at 16:29:31 UTC+8 TW Tones wrote:

> This variation also adds the year to the year field to make life easier.
>
> <$button>
> <$list filter="[all[]tag[Journal]]">
> <$set name=journal-tiddler value=<<currentTiddler>> >
>
> <$fieldmangler>
>    <$set name=year filter="[{!!title}split[]last[4]join[]]">
>        <$action-sendmessage $message="tm-add-tag" $param=<
> <year>>/>
>        <$action-setfield $field=year $value=<<year>> />
>    </$set>
> </$fieldmangler>
> </$set>
>
> </$list>
> Add tag for year
> </$button>
>
> I have attached my New Journal and New Journal here overwite of core 
> tiddlers here. This results in a Journal-date being set, so titles can 
> change and all journal dates will be valid. 
>
> You could add the above actions ito it so the year field is populated at 
> creation time.
>
> Just ask if you want me to update the macros and show you how to list 
> using year fields.
>
> Regards
> Tony
>
>
> On Monday, 24 August 2020 18:05:35 UTC+10, TW Tones wrote:
>>
>> 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 
>>    first[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/39417c5e-41c6-498c-8303-ec08d6ec0b6en%40googlegroups.com.

Reply via email to