With the goal of creating a well-designed (i.e. fitting my quirks!) journaling approach for a specific-use case (i.e. “ADHD meds trial” journaling) in my “Charlie's ADHD
Slice'n Dice” TiddlyWiki project, I rolled up my sleeves and learned a few TiddlyWiki things (I may have earned an extra yellow spot or two on my yellow-spotted belt, as per my fondness of using martial arts analogies to describe my skill level.)
So in the spirit of sharing in case it might be useful to anybody else ...
Custom Journal Button: Setting up related actions to also add a custom field (and default value) for a new journal tiddler
Transclusion and DetailsWidget Plugin: Wrapping each transcluded tiddler in a DetailsWidget
CheckBoxWidget: One-click expanding/collapsing all DetailsWidgets in a tiddler
“ADHD medication journey” Aggregation tiddler, side-by-side (before and after) appearances (i.e. view mode)
“ADHD medication journey” Aggregation tiddler, side-by-side (before and after) wiki text (i.e. edit mode)
The New MedsJourney Journal Entry “Text Config” Tiddler, side-by-side (before and after)
The New MedsJourney Journal Entry “Actions” Tiddler, side-by-side (before and after)
Appearance of new (created via New Journal button) MedsJourney Journal Entry Tiddler, side-by-side (before and after)
“ADHD medication journey” Aggregation tiddler, side-by-side (before and after) appearances (i.e. view mode):
In this image, notice (in the new version of the the tiddler on the right) the new “Expand All” CheckBoxWidget, a slightly bigger “New Journal” button, and both of these set together in a toolbar-like area.
Although the transcluded content looks the same, the “💊MedsJourney” tiddlers are now quite different, and the “ADHD medication journey” does the work of consistently presenting the transcluded content.
“ADHD medication journey” Aggregation tiddler, side-by-side (before and after) wiki text (i.e. edit mode):
In the new version of this tiddler (on the right side) the “🔴 ACTIONS TOOLBAR” section contains
the HTML and wikitext that creates the toolbar-like area
the transclusion of the new journal button for creating “💊MedsJourney” tiddlers (and a quick/dirty way of making that button bigger)
The wikitext to create the “Expand All” CheckBoxWidget
BTW, when the CheckBox is checked, the field value of “open_yn” in the “$:/temp/AdhdMedJourneyExpandAll” is set to “Yes”, which causes each DetailsWidget (for each transcluded “💊MedsJourney” tiddler) to be expanded; otherwise, each DetailsWidget stays collapsed
In the “🔴 CONTENT” section, the new version of the tiddler puts content from transcluded “💊MedsJourney” tiddlers inside a DetailsWidget:
each DetailsWidget’s a label (i.e. “summary”) is set to the field value of “summary_value” from the related “💊MedsJourney” tiddler
each DetailsWidget is expanded if the field value of “open_yn” in the “$:/temp/AdhdMedJourneyExpandAll” is set to “Yes”
The New MedsJourney Journal Entry “Text Config” Tiddler, side-by-side (before and after):
When a new “💊MedsJourney” tiddler gets created, the new tiddler gets created as a copy of the “New Journal Entry for Meds Text” tiddler (I’ll be changing that name sometime) and the title gets automagically set to the current date.
Before, the new button for “💊MedsJourney” tiddlers would automagically add a DetailsWidget to the text of the new tiddler. Although this setup was quick and easy, what a pain in the caboose changing anything related to DetailsWidgets on all existing “💊MedsJourney” tiddlers.
Before, the label (i.e. summary) for the DetailsWidget would get set directly in the tiddler text (i.e. by overwriting “Title”.) Now, the “ADHD medication journey” Aggregation tiddler takes care of creating a DetailsWidget for a “💊MedsJourney” tiddler and using the “summary_value” entered in the “💊MedsJourney” tiddler (set, upon creating that tiddler, by overwriting “⛔ Value for DetailsWidget "summary" parameter (i.e. label to show) ⛔”.)
The New MedsJourney Journal Entry “Actions” Tiddler, side-by-side (before and after):
BTW, the New Journal Button for creating “💊MedsJourney” tiddlers:
The “Actions” tiddler (i.e. what happens when the new journal button gets clicked) has not changed much except for one little thing. Upon creating of a new “💊MedsJourney” tiddler, the actions add to the new tiddler a “summary_value” field with the same value as the one in the “New Journal Entry for Meds Text” tiddler (i.e. the value “⛔ Value for DetailsWidget "summary" parameter (i.e. label to show) ⛔”.)
Appearance of new (created via New Journal button) MedsJourney Journal Entry Tiddler, side-by-side (before and after)
Pressing triggers the actions in the “New Journal Entry for Meds Text” tiddler, which results in a new “💊MedsJourney” tiddler pre-filled with a title equal to the current date.
In the previous version, the new tiddler would get created with a DetailsWidget automagically added to the tiddler’s text.
In the new version, nothing is put in the tiddler’s text, however a “summary_value” field does get automagically created and populated with a reminder to enter a value in that field.
Those “⛔” unicode characters are “hey, you need to do something here” visual reminders that are hard to miss...
Heads-up: I like using unicode characters in TiddlyWiki as quick virtual cues. Please note that some folk have reported unicode characters causing issues in their TiddlyWikis, so use unicode characters in your own TiddlyWikis at your own risks !!!