[TW5] I can't program, I need help for custom TW for TBI patient

112 views
Skip to first unread message

CPorter9

unread,
Aug 23, 2016, 11:13:42 AM8/23/16
to TiddlyWiki
I'm  trying to set up a simple journal tiddlywiki for a TBI (traumatic brain injury) patient.  I have asked for help earlier, but actually, I can't understand the replies I've gotten, I'm floundering.

I'm deciding to ask for help in general. The person with the TBI has severe deficits in executive functions re: organization skills, time management skills, memory and decision making. The TBI patient does like technology, and does enjoy writing, so I'm thinking a personal computer program that runs in a ubiquitous browser is very likely to see a lot of use.

So I want to set up a journal so that each day is somewhat structured around the directions in the journal. I've uploaded 3 screenshots of an example TW I am working on. It has been modified with a toc-content sidetab, and each journal entry has a tab bar at the top that shows items the person is supposed to tackle daily. The tabs are for daily things, they don't contain stuff that needs to be saved in any tiddler that's called in the tab.

Really could use some help on this as I have spent about 10 hours on this and I haven't yet been able to figure out how to get a default journal tiddler to display a tab bar, nor have I been able to find a way for the tasks tab to have a rotating set of tasks depending on the day the journal was created. All I can do is create static tiddlers for the contents. The journal tiddler modification is beyond me.

Will anyone be willing to help? Please?


Screen Shot 2016-08-23 at 9.49.58 AM.png
Screen Shot 2016-08-23 at 9.50.53 AM.png
Screen Shot 2016-08-23 at 9.51.40 AM.png

J Mc

unread,
Aug 23, 2016, 11:39:57 AM8/23/16
to TiddlyWiki
Hi CPorter9
I think you could use the tw5-suitcase to do what you want.

http://tw5-suitcase.tiddlyspot.com/

J Mc

Mark S.

unread,
Aug 23, 2016, 4:06:10 PM8/23/16
to TiddlyWiki
Here's a hack that may or may not get you started with the journal. Replace the contents of $:/core/ui/Buttons/new-journal with :

\define journalButton()
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="$(journalTags)$" text="$(journalText)$"/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/new-journal-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/
language/Buttons/NewJournal/Caption}}/></span>
</$list>
</
$button>
\end
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
<$set name="journalText" value={{NewJournalText}}>
<<journalButton>>
</$set></$set></$set>

Create a tiddler called "NewJournalText" and put your preferred default text for the journal in it. Now when you click on "NewJournal" you will get the new journal already populated with your desired default text.

Mark

RichardWilliamSmith

unread,
Aug 23, 2016, 7:45:02 PM8/23/16
to TiddlyWiki
Hi CPorter9,

Welcome to the wonderful world of hacking TW :) You'll know exactly how to do what you need to do as soon as you've done it and no longer need to know ;)

I'll help you if I can. Can you post (a link to) your file?

Regards,
Richard

RichardWilliamSmith

unread,
Aug 23, 2016, 9:55:41 PM8/23/16
to TiddlyWiki
Hi,

Take a look at this 


It;s just a first pass - happy to help you iterate on it

Regards,
Richard
Reply all
Reply to author
Forward
0 new messages