How to get bjtools Extendable Calendar to display the contents of a field

So sorry it did not work for me even when I updated to 5.3.6.

This works but it puts the styling in the field not in the macro, which makes mass styling impossible, so it is not a solution either:

\define diarydets(i,tiddlerDate,rawDate,tags)
$i$<br>
 <$list filter ="[tag[Journal]search:journal-date[$rawDate$]!is[system]]"><$link>{{!!journal-day-summary}}</$link><br>{{!!journal-entry-thumbnail}}</$list>

\end

Field content:

<<image-basic img:"Journal Pics and Vids/2025/2025-06-08_1310_08974.jpg" width:"20%" align:"" caption:"" tooltip:"" alt:"">>

1 Like

@tw-FRed Success! Using the complete widget syntax works! Thank you all!

3 Likes

How do I get the square at the top of @buggyj 's Extendable Calendar (the square that displays “July 2025”) to also display the contents of a tiddler’s “month-summary” field?

For instance, if I have a tiddler with the journal-date field containing “20250700000000000” and the “month-summary” field containing “Climbed 8 mountains”, how do I get “Climbed 8 mountains” to show up centered 2 lines below July 2025?

Or forget the month-summary field, what if I just want the contents of that tiddler (i.e. the text field) to show up under the July 2025?

Thanks in advance for any help.

I think this is possible with a small change to the macro - I will have a think and let you know.

I have added a month summary - see https://bjcanendar-mod.tiddlyhost.com/

2 Likes

So sorry I could not quite get the month summary to work.

Using the site https://bjcanendar-mod.tiddlyhost.com/ I created a tiddler titled 2024 May Summary tagged it with journal-month-summary, put 20240500000000000 in the journal-date field, and put in the text field:

In May I hiked Great Britain. [Not really. I wish.]

"""
Week 1: Hiked England
Week 2: Hiked Scotland
Week 3: Hiked Skye
Week 4: Hiked Ireland
"""

Then I made sure your ExampleWithSummary tiddler contained this:

\define diarydets(i,tiddlerDate,rawDate,tags)
$i$<br>
 <$list filter ="[tag[Journal]search:journal-date[$rawDate$]]">{{!!journal-day-summary}}</$list>
\end

\define summarydets(i,tdiddlerDate,rawDate,tags)
<$list filter ="[tag[journal-month-summary]search:journal-date[$rawDate$]!is[system]]"><$link><$transclude field="text" mode="block"/></$link></$list>
\end

<<newdiary 2024>>

The Problem: The month summary for May 2024 appeared in every single month, not just the month of May.

I don’t know what I’m doing wrong. I don’t know what i,tdiddlerDate,rawDate,tags are for either, I just acted on a hunch and copied the \define diarydets line above. (I did one time, a year or so ago, successfully create my first personal-use-case /define using groktiddlywiki, but it was my first and last /define and I have forgotten what it was and all I knew about them.)

Thank you in advance for any help and all the wonderful calendar modifications you have helped me with in the past.

the summary is like this:

\define summarydets(mnth,year)
this is the year $year$ and month $mnth$
\end

it is a standard tw macro with parameters mnth and year, so it is flexible.

Probably the simplest way to use it is to have tiddler titles like ‘2024 7 summary’ and define your macro as

\define diarydets(i,tiddlerDate,rawDate,tags)
$i$<br>
 <$list filter ="[tag[Journal]search:journal-date[$rawDate$]]">{{!!journal-day-summary}}</$list>
\end

\define summarydets(mnth,year)
{{$year$ $mnth$ summary}}
\end

<<newdiary 2024>>

Thank you! It works beautifully! And I understand the variables now.

I am using it like this in order to get mode=block:

<$transclude $tiddler="$year$ $mnth$ Journal Summary" $field="text" $mode="block"/>

UPDATE: It works beautifully on your website, but not in my wiki :frowning:

ON YOUR SITE

Even on your site, when I put <<newdiary 2024>> into a new tiddler, the month summary did not show up until I tagged your ExampleWithSummary tiddler (containing the summary define) with $:/tags/Macro … then the summary showed up even in the new tiddler.

IN MY WIKI

On my wiki, it is the $:/bj/macros/Calendar/diarydetsmacro that contains the summary define:

\define diarydets(i,tiddlerDate,rawDate,tags)
$i$<br>
 <$list filter ="[tag[Journal]search:journal-date[$rawDate$]!is[system]]"><$link>{{!!journal-day-summary||journal-entry-summary}}</$link><br><$macrocall $name="image-basic" img={{!!journal-entry-thumbnail}} width="20%" align="" caption="" tooltip="" alt="" />
</$list>

\end

\define summarydets(mnth,year)
{{$year$ $mnth$ summary}}
\end

However even though that tiddler is tagged with $:/tags/Macro, no summaries are showing up in your calendars on my wiki.

I have your monthly calendar showing up on every month of Mohammed’s Journal-book (see this thread How can Journal Book be modified to show a Calendar if a Month is clicked - #10 by buggyj).

At first I thought that was somehow the complication but even when I created a simple new tiddler with nothing but <<newdiary 2024 7>> in it, it still does not show the summary. Even though $:/bj/macros/Calendar/diarydetsmacro is tagged with $:/tags/Macro.

So my wiki is at fault somehow, but as I can not share my personal wiki, I do not think I will be able to ask for help on it again until I have time to set up a tiddlyhost site with the Journal-Book combined with your calendar.

However thank you so much for what was solved, and maybe something will occur to me later.

I forgot to update the plugin, I have updated the version here https://bjcalendar.tiddlyhost.com/, with the monthly summary.

1 Like