@Pit,

Finally got it to a working state. This is what I got so far:  
odinjorna.github.io/sixminutejournal/ 
How to try it out:
- Fill in the prompts in $:/plugins/odin/sixminutejournal/morninginput
- Go to the newly made tiddler via the 'recent' tab and open it
- It contains the questions and the answers you gave + a box with two more 
questions. After you fill these in and press the button, the box will 
disappear and the answers will be added to the text of the tiddler.
- When you open up the tiddler to edit, you can see it is just plain text. 
This makes it easier to edit your journal afterwards. 

Op woensdag 6 januari 2021 om 10:51:14 UTC+1 schreef Pit.W.:

> Odin,
> it would be interesting to see the complete solution once you have 
> assembled it. Could you publish it?
>
> Pit
> Am 31.12.2020 um 16:57 schrieb [email protected]:
>
> Thanks for the reply!
>
> what would the correct syntax be in this case? 
>
> <$action-createtiddler
>     $basetitle=<<newTitle>>
>     tags="[[Six Minute Journal]]"
>     text=<$macrocall $name="sixminutejournal" 
> grateful={{$:/temp/odin/sixminutejournal!!sixminute-grateful}} 
> great={{$:/temp/odin/sixminutejournal!!sixminute-great}} 
> affirmation={{$:/temp/odin/sixminutejournal!!sixminute-affirmation}}>
>     sixminute-time='21:00'
>
>
> This doesn't work. I tried some options in which I incase it with ', or  
> ", or {{{ }}}. But I think I am not getting the syntax right. Or should I 
> use a different widget in the first place?
> Op woensdag 30 december 2020 om 23:49:45 UTC+1 schreef TW Tones:
>
>> The approach you are using is valid; Using a macro and replaceable 
>> parameters, however
>>
>> use the $macrocall widget for sixminutejournal then the parameters will 
>> accept {{transclusions}} or <<macros>> 
>>
>> The method you used is not valid, inside simple macro calls.
>>
>> Regards
>> Tony
>>
>>
>> On Thursday, 31 December 2020 at 07:00:16 UTC+11 [email protected] wrote:
>>
>>> I am working on a little plugin that allows users to fill in a short 
>>> reflection on the day. There are 3 questions and I am using an edit-text 
>>> widget to provide for an input. The structure is like this:
>>>
>>> !! I am grateful for...
>>> <$edit-text> for the answer stored in a temp tiddler field
>>> !! What would make today great?
>>> <$edit-text> for the answer stored in a temp tiddler field 
>>> !! Daily affirmation. I am...
>>> <$edit-text> for the answer stored in a temp tiddler field   
>>>
>>> Now I can use a viewtemplate to show this in the tiddler that is gets 
>>> stored into, just like I did with my recipe plugin. But in this case I 
>>> would like to Concatenate the questions and the answers into one text field 
>>> so that users can later edit their journal entry. But I can't figure out 
>>> how to.
>>>
>>> I think the answer lies in either a macro or the vars widget (maybe 
>>> both). But I am stuck and I am not understanding the documentation 
>>> correctly.
>>>
>>> So far I have this
>>>
>>> \define sixminutejournal(grateful, great, affirmation) 
>>> !!! I am grateful for:
>>>
>>> $grateful$
>>>
>>> !!! What would make today great?
>>>
>>> $great$
>>>
>>> !!! Daily affirmation. I am ...
>>>
>>> $affirmation$
>>> \end
>>>
>>> And then calling the macro with inside the button that creates the 
>>> tiddler:
>>>     text=<<sixminutejournal 
>>> grateful:{{$:/temp/odin/sixminutejournal!!sixminute-grateful}} 
>>> great:{{$:/temp/odin/sixminutejournal!!sixminute-great}} 
>>> affirmation:{{$:/temp/odin/sixminutejournal!!sixminute-affirmation}}>>
>>>
>>> But this leads to:
>>>
>>> !!! I am grateful for:
>>>
>>> {{$:/temp/odin/sixminutejournal!!sixminute-grateful}}
>>>
>>> !!! What would make today great?
>>>
>>> {{$:/temp/odin/sixminutejournal!!sixminute-great}}
>>>
>>> !!! Daily affirmation. I am ...
>>>
>>> {{$:/temp/odin/sixminutejournal!!sixminute-affirmation}}
>>>
>>>
>>> How do I get this to fill in the answers and paste it instead?
>>>
>>> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/80683332-1fbb-4791-9c0b-20bd8c5c0334n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/80683332-1fbb-4791-9c0b-20bd8c5c0334n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>
>
> _________________________________________________________________
> ________________________________________________________
> Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte 
> E-Mail-Adresse mitnehmen! https://www.eclipso.de
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e3301a72-cebb-430c-a15f-4c67f2d7f8fcn%40googlegroups.com.

Reply via email to