Hi, Tobias. I use fET, because it usually solves all of my problems. :D Anyway, I don't want to display tiddler titles but specific parts or sections or slices in those tiddlers. Displaying the last 10 is no problem, I already did that with fET, what I was looking for was random 10 from the last 50.
w On Feb 18, 8:48 pm, Måns <[email protected]> wrote: > Hi Tobias & Whatever > > Things could be rather simple if fET were not (always) the tool of > > > choice. > > I know how to change a fET to output a custom field ie. "name".. instead of > tiddlertitle. > How would I do that in this script?: > > > > > <script> > > var a=[],i,max=10,n=0,out='',t,tags, > > tids=store.getTiddlers("modified","excludeLists"); > > for (t in tids) { > > tags=tids[t].tags; > > if (tags&&tags.contains('$1'))a.pushUnique(tids[t].title,true); > > } > > > while(n<max&&a.length>0){ > > n++; > > i=Math.floor(Math.random()*a.length); > > out+="*[["+a[i]+"]]\n"; > > a.splice(i,1); > > } > > > return out; > > </script> > > Cheers Måns Mårtensson -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

