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/0840c75d-c9cb-41d2-95f0-f4fafb31af94n%40googlegroups.com.