Hi r

As far as I remember, the ActionSetfield widget may also be used in 
conjunction with a widget message to open the new tiddlers for editing.

regards

On Saturday, 4 February 2017 02:31:16 UTC+2, Matabele wrote:
>
> Hi J Mc and Tobias
>
> I can give a kind of general answer.
>
> The ActionSetfield widget may be used by way of a hack to create new 
> tiddlers silently in the background, since setting the value of a field of 
> a non-existent tiddler currently results in the missing tiddler being 
> created quietly in the background. However, this did not fit all of my 
> requirements, hence the ActionMaketid widget -- some quick notes:
> -- There is no option to open the list of new tiddlers in the story river 
> nor open the list of tiddlers for editing (or indeed, with two 
> ActionMaketid widgets, some mix of the three scenarios).
> -- The ActionMaketid widget came derived from a line of widgets whose 
> purpose was the creation of multipurpose buttons
> -- The ActionMaketid widget requires a list of titles as input (and can 
> create simple series of tiddlers, such as indexed with an integer on its 
> own)
> -- I cut down one of Tobias widgets to be used for more complex cases
> -- There may be cases where the ActionSetfield method is either sufficient 
> or superior to the MakeTid method
> -- I began be using the ActionSetfield (actually my old SetField widget) 
> method to create tiddlers by default and wrote the ActionMaketid to do some 
> things impossible with the ActionSetfield method
> -- nowadays I tend to try the ActionMaketid first (its made for the 
> purpose)
>
> regards
>
> On Thursday, 2 February 2017 14:31:25 UTC+2, Tobias Beer wrote:
>>
>> Hi J,
>>
>> As far as I can see, it cannot, since it provides
>> the button itself rather act like other ActionWidgets 
>> <http://tiddlywiki.com/#ActionWidgets>.
>>
>> However, you can use tobibeer/make 
>> <http://tobibeer.github.io/tw5-plugins/#make> and tobibeer/split 
>> <http://tobibeer.github.io/tw5-plugins/#split>
>> alongside the WidgetMessage: tm-new-tiddler 
>> <http://tiddlywiki.com/#WidgetMessage%3A%20tm-new-tiddler> like so:
>>
>> <$set name="titleFoo" filter="[[foo]make[%title% %date% \ 
>> date-format:YYYY-0MM-0DD]split[ ]]">
>> <$set name="titleBar" filter="[[bar]make[%title% %date% \ 
>> date-format:0hh:0mm:0ss]split[ ]]">
>> <$button>
>> <$action-sendmessage $message="tm-new-tiddler" title=<<titleFoo>> 
>> tags="Foo" text=<<now "Today is DDth, MMM YYYY">>/>
>> <$action-sendmessage $message="tm-new-tiddler" title=<<titleBar>> 
>> tags="Bar" text=<<now "Today is DDth, MMM YYYY">>/>
>> Create two tiddlers in edit-mode
>> </$button>
>> </$set>
>> </$set>
>>
>> Alternatively, you can use the ActionSetFieldWidget 
>> <http://tiddlywiki.com/#ActionSetFieldWidget> instead,
>> to create the tiddlers silently, w/o EditMode:
>>
>> <$set name="titleFoo" filter="[[foo]make[%title% %date% \ 
>> date-format:YYYY-0MM-0DD]split[ ]]">
>> <$set name="titleBar" filter="[[bar]make[%title% %date% \ 
>> date-format:0hh:0mm:0ss]split[ ]]">
>> <$button>
>> <$action-setfield $tiddler=<<titleFoo>>
>> text=<<now "Today is DDth, MMM YYYY">>
>> tags="Foo"/>
>> <$action-setfield $tiddler=<<titleBar>>
>> text=<<now "Today is DDth, MMM YYYY">>
>> tags="Bar"/>
>> <$action-navigate $to=<<titleBar>>/>
>> <$action-navigate $to=<<titleFoo>>/>
>> Create two tiddlers silently and open them
>> </$button>
>> </$set>
>> </$set>
>>
>> You can try the above examples directly at:
>>
>> http://tobibeer.github.io/tw5-plugins
>>
>> Best wishes,
>>
>> Tobias.
>>
>

-- 
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/a09ea5c7-dcb7-4cd7-ae4a-89b5914c3940%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to