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] <mailto:[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/8c3363f6-dc1c-4e7a-6ee3-c7343cb2c3ca%40eclipso.ch.

Reply via email to