Hello and thank you very much for providing another solution! I very much 
appreciate the answers and also the information provided!

As a quick follow-up question:

For both methods: 

<$action-setfield $tiddler=<<myTarget>>
<$action-setfield $tiddler={{!!target}}

If I wanted to add/append some static text to the end of the target field 
value, how would I do so? I have tried various ways, using + or enclosing 
the variable and text in " or brackets but can't seem to find the 
combination.

For an idea:

Target = HTVW

<$action-setfield $tiddler=[<<myTarget>> Chapter 01] would produce a 
Tiddler with the title of HTVW Chapter 01
<$action-setfield $tiddler={{{!!target}}+ Chapter 01} would produce a 
Tiddler with the title of HTVW Chapter 01

Thank you again for your help and any additional information/solutions you 
can provide!


On Wednesday, June 9, 2021 at 1:09:25 AM UTC-4 Eric Shulman wrote:

> On Tuesday, June 8, 2021 at 8:21:19 PM UTC-7 [email protected] wrote:
>
>> There are often many different ways of doing things, and I just went 
>> ahead with the fastest solution I could think of...
>>
>
> Here's a much more compact way to write the same functionality:
> \define temp() $:/temp/input/$(currentTiddler)$
>
> |      Label:|<$edit-text tiddler=<<temp>> field="label"/>    |
> |   From Tag:|<$edit-text tiddler=<<temp>> field="fromtag"/>  |
> |     Target:|<$edit-text tiddler=<<temp>> field="target"/>   |
> | Target Tag:|<$edit-text tiddler=<<temp>> field="targettag"/>|
>
> <$tiddler tiddler=<<temp>>>
> <$button> <$view field="label">join tiddlers</$view> 
>    <$action-setfield $tiddler={{!!target}} text={{{ 
> [tag{!!fromtag}get[text]join[]] }}} tags={{!!targettag}} />
>    <$action-deletetiddler tiddler=<<temp>> />
> </$button>
> </$tiddler>
>
> Notes:
> 1) the inputs are stored in a $:/temp tiddler, so it doesn't clutter up 
> the visible list of tiddlers
> 2) the temp tiddler's title is assembled using a simple \define, rather 
> than using $vars with filtered transclusion syntax
> 3) the input form uses simple wikitext table syntax instead of HTML syntax 
> to produce more readable code
> 4) the $edit-text widgets target <<temp>> rather than the more verbose, 
> but equivalent, {{{ [<temp>] }}}
> 5) the $button is enclosed in a $tiddler widget so that references to the 
> input field values can use {{!!fieldname}}
> 6) the $button uses <$view>...</$view> to provide a default label if none 
> is input
> 7) instead of using $wikify, the output text is constructed using filtered 
> transclusion syntax to join the source tiddler content into a single string
> 8) the $:/temp tiddler is deleted after processing the $button press to 
> clear all the form inputs for re-use
>
> enjoy,
> -e
>

-- 
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/85a2d028-81ee-47cb-b5e5-388910f36bc9n%40googlegroups.com.

Reply via email to