Re: [tw5] Re: Concatenating contents of multiple fields into one textfield

2021-01-12 Thread Odin
@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 odin...@gmail.com:
>
> Thanks for the reply!
>
> what would the correct syntax be in this case? 
>
> <$action-createtiddler
> $basetitle=<>
> 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 <> 
>>
>> The method you used is not valid, inside simple macro calls.
>>
>> Regards
>> Tony
>>
>>
>> On Thursday, 31 December 2020 at 07:00:16 UTC+11 odin...@gmail.com 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=<>> 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 tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/80683332-1fbb-4791-9c0b-20bd8c5c0334n%40googlegroups.com
>  
> 
> .
>
>
>
>
> _
> 
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Re: [tw5] Re: Concatenating contents of multiple fields into one textfield

2021-01-06 Thread 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 odin...@gmail.com:

Thanks for the reply!

what would the correct syntax be in this case?

<$action-createtiddler
    $basetitle=<>
    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 <>

The method you used is not valid, inside simple macro calls.

Regards
Tony


On Thursday, 31 December 2020 at 07:00:16 UTC+11 odin...@gmail.com
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=<>

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 tiddlywiki+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/80683332-1fbb-4791-9c0b-20bd8c5c0334n%40googlegroups.com 
.



_

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8c3363f6-dc1c-4e7a-6ee3-c7343cb2c3ca%40eclipso.ch.


[tw5] Re: Concatenating contents of multiple fields into one textfield

2021-01-05 Thread TW Tones
See my comments inline

On Friday, 1 January 2021 at 02:57:33 UTC+11 Odin wrote:

> Thanks for the reply!
>
> what would the correct syntax be in this case?
>
> <$action-createtiddler
> $basetitle=<>
> 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'
>
>>
>>>

   - Should >  be /> ?
   - Where is the end of the action widget />?
   - Why cram macrocall inside the action widget, why not establish the 
   value to use there with a variable before the action widget, you may have 
   to wikify the result.

\define parameters()  
grateful={{$:/temp/odin/sixminutejournal!!sixminute-grateful}} 
great={{$:/temp/odin/sixminutejournal!!sixminute-great}} 
affirmation={{$:/temp/odin/sixminutejournal!!sixminute-affirmation}}
<$wikify name=parameters text=<> >

<$action-createtiddler
$basetitle=<>
tags="[[Six Minute Journal]]"
text=<>
sixminute-time='21:00'
/>

 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/477291af-8886-4d12-b94b-9443905eb3dcn%40googlegroups.com.


[tw5] Re: Concatenating contents of multiple fields into one textfield

2020-12-31 Thread odin...@gmail.com
Thanks for the reply!

what would the correct syntax be in this case?

<$action-createtiddler
$basetitle=<>
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 <>
>
> The method you used is not valid, inside simple macro calls.
>
> Regards
> Tony
>
>
> On Thursday, 31 December 2020 at 07:00:16 UTC+11 odin...@gmail.com 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=<> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/80683332-1fbb-4791-9c0b-20bd8c5c0334n%40googlegroups.com.


[tw5] Re: Concatenating contents of multiple fields into one textfield

2020-12-30 Thread 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 <>

The method you used is not valid, inside simple macro calls.

Regards
Tony


On Thursday, 31 December 2020 at 07:00:16 UTC+11 odin...@gmail.com 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=< 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0840c75d-c9cb-41d2-95f0-f4fafb31af94n%40googlegroups.com.