Hi Rizwan
I created a plugin for precisely this purpose -- head over to the MakeTid
plugin wiki <http://maketid.tiddlyspot.com/> to see some examples.
I put this up in a hurry for someone else -- there are brief docs in the
Preferences/Plugins tab. The maketid[] filter is a stripped down version of
Tobias's make[] filter -- this works together with the Maketid widget to
create one or more tiddlers with a single button click. For your purposes,
feed the list of titles into the maktid[] filter.
regards
On Tuesday, 6 September 2016 19:28:10 UTC+2, Rizwan Ishak wrote:
>
>
>
> This contains several questions, please be patient.
>
>
>
> Say, there is a dictionary tiddler with title "*Fruits*" and having
> content.
>
> Apple:Red
> Mango:Yellow
> Grapes:Purple
> Watermelon:Green
>
>
> I am trying to generate, on a single button click, four tiddlers with
> titles Apple, Mango, Grapes and Watermelon.
>
> With the code
> <$button>
> <$list filter="[title[Fruits]indexes[]]" variable="index">
> <$action-sendmessage $message="tm-new-tiddler" title="<<index>>"/>
> Multiple Tiddlers, Yay!!
> </$button>
>
> I was able to generate drafts of 4 tiddlers with the required names. But I
> didn't want them to open for editing or appear in the storyriver - just be
> created silently.
> I tried using make plugin from Tobibeer as
>
> <$button>
> <$list filter="[title[data]indexes[]sort[title]]" variable="index">
> <$action-setfield $field=notetext $value=<<index>> />
> ================> coz I read 'make' plugin won't accept anything but
> default macros.
> <$list filter="[[]make[{{!!notetext}}]]"/>
> </$list>
> Multiple Tiddlers, Yay!!
> </$button>
>
>
> | am not quite sure I nailed that syntax. I am not even sure this is how
> to use it.
>
>
> Questions
> 1. The button widget attribute set/setTo which will allow you to generate
> a new tiddler silently given that no tiddler target is given and set=title
> is specified, how do I replicate the same here? Or is there some other way?
> I guess that way I can store most of my read only data in a dictionary
> format and generate tiddlers only when necessary.
> 2. List filter in the above codes as "[title[Fruits]getindex[]]" returns
> absolutely nothing. If I understand correnctly, it should return the other
> side of colon, right? May I know what am I doing wrong?
> 3. Can there be something like "Stupid Questions Saturday" or something
> where absolute noobs can ask questions without fearing to be a botheration?
>
>
>
>
>
>
>
>
--
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/1c197503-5391-4420-8c8f-0f205462b569%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.