G'day si,
Not sure if the code below will work for you.
I created a tiddler with that code, and simulated with a "hard-coded"
filter to grab tiddlers "a" and "b".
The process sets the text for the aggregator tiddler to whatever it had
plus the text from tiddlers a and b.
That was fun !
\define my-actions()
<$list filter="[[a]] [[b]]">
<$action-setfield $tiddler="aggregator" $field="text" $value={{{
[[aggregator]get[text]] [<currentTiddler>get[text]] +[join[<br>]] }}}/>
</$list>
\end
<$button actions=<<my-actions>>>
Click me!
</$button>
On Thursday, April 22, 2021 at 6:44:49 PM UTC-3 si wrote:
> I'm trying to create a button that will take the output generated by the
> following list-widget and set it as the text of another tiddler. The text
> needs to retain all its original formatting.
>
> Here is the widget whose output I want to save (note that the operator
> used is from the new Streams pre-release, but I don't think that this is
> relevant to my question):
>
> <$list filter="[<currentTiddler>get-stream-nodes[]]">
> <$transclude mode=block/>
> </$list>
>
> I guess I want to get the output of this widget into a variable, and then
> use the button-widget with "setField" to save it into another tiddler.
>
> I have tried using something like <$set name=myText
> filter="[<currentTiddler>get-stream-nodes[]get[text]]"> but I end up
> losing all the formatting.
>
> Anyone able to help me out here?
>
> Thanks in advance.
>
--
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/11889b30-cbf8-4a7a-813d-4d3c7e4da320n%40googlegroups.com.