Hi,
I’m new to TiddlyWiki, please let me know if this is not an appropriate post.
I am experimenting with programmatically creating new Tiddlers for a Project management system. I’d like to have two buttons
- In a
Projects
Tiddler aNew Project
button that generates a project Tiddler that includes - A button that creates a new task tagged with that project
I would appreciate some feedback on my approach. This is what I got
The project template tiddler called NewProjectParam
\define newProjTaskActionWidget(title)
<$action-sendmessage
$message="tm-new-tiddler"
title="New Task"
tags="[[task]] [[$title$]]"
priority="Z"
/>
\end
\procedure toButton()
<$transclude $variable="newProjTaskActionWidget" title={{!!title}}/>
\end
!! TOC
<$list filter="[all[current]tagging[]!tag[Meeting]!tag[task]sort[title]]">
<<currentTiddler>><br>
</$list>
!!! Meetings
<$list filter="[all[current]tagging[]tag[Meeting]!sort[created]]">
<<currentTiddler>> ({{!!at}})<br>
</$list>
!!! Tasks
<$button actions=<<toButton>>>New Task</$button>
<<list-tagged-draggable tag:"task" subFilter:"all[current]tagging[]tag[task]!has[draft.of]!tag[done]sort[priority]" itemTemplate:"TemplTask" emptyMessage:"You don't have any active tasks">>
<$list filter="[!has[draft.of]all[current]tagging[]tag[task]tag[done]sort[modified]]">
<div>
<$checkbox tag="done"> ~~<$link/>~~</$checkbox>
</div>
</$list>
Than in Project
I have
\define newProjectActionWidget()
<$action-sendmessage
$message="tm-new-tiddler"
$param="NewProjectParam"
title="New Project"
tags="[[Project]]" />
\end
<$button actions=<<newProjectActionWidget>>>New Project</$button>
<<list-links "[tag[Project]sort[title]]">>
TemplTask
is very simple:
<$checkbox tag="done"> <$link/> {{!!priority}}</$checkbox>
It seems to work fine but I am not sure about the procedure and definition. Any feedback is highly appreciated! Thanks!