Hi Matthew

I made my own taskJornalHere button like this: (check out a live example 
at: My playground </>


[[2015 05 16 Sat 11:6:48]]
<http://playground.tiddlyspot.com/#>1 second ago
alternative usage Journal Task
Probability:3-sometimesTagged titles:   1-rarely  2-unlikely  3-sometimes  
4-likely  5-frequently  

NewTaskJournalHere <http://playground.tiddlyspot.com/#NewTaskJournalHere>:

\define taskJournalButtonTags()
[[$(currentTiddlerTag)$]] $(taskJournalTags)$
\end
\define taskJournalButton()
<$button tooltip={{NewTaskJournalHere!!hint}} 
aria-label={{$:/language/Buttons/NewJournalHere/Caption}} 
class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-new-tiddler" title=<<now 
"$(taskJournalTitleTemplate)$">> text=<<taskJournalTextTemplate>> 
tags=<<taskJournalButtonTags>>/>
<$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={{NewTaskJournalHere!!caption}}/></span>
</$list>
</$button>
\end
<$set name="taskJournalTitleTemplate" 
value={{NewTaskJournalHere!!titletemplate}}>
<$set name="taskJournalTags" value={{NewTaskJournalHere!!tagtemplate}}>
<$set name="currentTiddlerTag" value=<<currentTiddler>>>
<$set name="taskJournalTextTemplate" value={{NewTaskJournalHere!!texttemplate}}>
<<taskJournalButton>>
</$set></$set></$set>

captionNew task journal herecreated20150516073545040description
{{$:/language/Buttons/NewJournalHere/Hint}}hintCreate a new task journal 
tiddler tagged with this onemodified20150516090641920tags$:/tags/ViewToolbar
tagtemplateJournal Tasktexttemplate{{||tasktemplate}}titleNewTaskJournalHere
titletemplateYYYY 0MM 0DD ddd hh:mm:ssurl
http://tiddlywiki.com/#Creating%20journal%20tiddlers


Cheers Måns Mårtensson


Den lørdag den 16. maj 2015 kl. 10.29.09 UTC+2 skrev Måns:
>
> http://tiddlywiki.com/#Page%20and%20tiddler%20layout%20customisation
>
> Den lørdag den 16. maj 2015 kl. 10.08.02 UTC+2 skrev Måns:
>>
>> Hi Matthew
>>
>> Which version of TW5 are you using? I doubt that your skeleton code will 
>> work in an up to date version of TW5.
>>
>> Check out: http://tiddlywiki.com/#Creating%20journal%20tiddlers 
>>
>> You could clone the new-journal-here button* and use it as a template to 
>> create your own special NewTaskJournalHere button.
>>
>> [*] $:/core/ui/Buttons/new-journal-here 
>> <http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fnew-journal-here> 
>>
>> Cheers Måns Mårtensson
>>   
>>
>> Den mandag den 11. maj 2015 kl. 09.26.47 UTC+2 skrev Matthew Petty:
>>>
>>> I use a button to create task tiddlers. It uses a TaskSkeleton to create 
>>> consistently formatted tiddlers.
>>> I want to add a button to the skeleton which would create a new task, 
>>> tagged with the current task, which would also use the TaskSkeleton.
>>> The "new here" button just creates a new empty tiddler, and it's only 
>>> accessible in view mode.
>>>
>>> I think it's just a case of making a new task creation button, based on 
>>> the current one. Here's TaskButton:
>>> <$let tag1="journal" text="">
>>> <$newtiddler title=<<dateTime 'YYYY 0MM 0DD ddd hh:mm:ss'>> 
>>> skeleton="TaskSkeleton" edit="yes">Create Task "<<dateTime 'YYYY 0MM 
>>> 0DD ddd hh:mm:ss'>>"</$newtiddler>
>>> </$let>
>>>
>>> What could I add to that to tag the new task with the tiddler that 
>>> displayed this button?
>>>
>>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bfab4ab0-81a6-44b6-9607-add9408df3db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to