In your first case, you weren't assigning a title. Every tiddler needs a
title. This code seemed to do the trick:
<$button>
<$list filter="[[Fruits]indexes[]sort[title]]" variable="index">
<$action-setfield $field="title" $value=<<index>> />
</$list>
Multiple Tiddlers, Yay!!
</$button>
getIndex appears to need a property. So something like this worked:
<$list filter="[title[Fruits]getindex[Apple]]" ><$view field=title/></$list>
As far as I can tell, most every day is Stupid Questions Saturday ;-)
HTH
Mark
On Tuesday, September 6, 2016 at 10:28:10 AM UTC-7, 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/91fe177d-000f-4f0b-b8a4-fd11bfac0d91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.