(this was discussed in this thread: 
https://groups.google.com/forum/?hl=en#!searchin/tiddlywiki/x-maketid%7Csort:relevance/tiddlywiki/FQE6CEX03Jk/rqdQmdLjBQAJ
)

I've successfully created new tiddlers with titles set to the concatenated 
results of two selects. However, it takes me four clicks (including 
deleting a temporary tiddler). 

Here is my implementation: 
https://dl.dropbox.com/s/ep3i0ylqxx8btxx/naming-a-new-tiddler.html?dl=0

Any ideas of how to reduce the number of clicks (ideally, to one button).

Thanks!

//steve.

Here's the code:
* Objective: Create a new tiddler with the name derived from two selects, 
with fewer than four clicks
* Requires: maketid plugin from http://gwiz-beta.tiddlyspot.com/#
<hr>
<$button>
<$action-deletetiddler $tiddler="$:/temp1"/>
<$action-deletetiddler $tiddler="$:/temp2"/>
One - delete temporary tiddlers
</$button>

Color: <$select tiddler='$:/temp1'>
<option>Red</option>
<option>Blue</option>
<option>Green</option>
</$select>

Vehicle: <$select tiddler='$:/temp2'>
<option>Truck</option>
<option>Sedan</option>
<option>Convertible</option>
</$select>


<$button>
<$x-maketid  $title="Temporary"  
tiddlertitle={{$:/temp1}} $navigate="hide"/>
Two - create temporary tiddler and field:tiddlertitle 
</$button>
<$button>
<$action-listops $tiddler="Temporary" $field="tiddlertitle" $subfilter={{$:/
temp2}}/>
Three - append value to temporary field
</$button>
<$button>
<$x-maketid $title={{Temporary!!tiddlertitle}}  tags="ColorVehicles"  />
<$action-deletetiddler $tiddler="Temporary"/>
Four - create desired tiddler with tags, delete temporary tiddler
</$button>



-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f8515016-ceed-47aa-80b5-2f45db301965%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to