Hi magev958

You'll need '(index < 5) ?

>
> ForEachTiddler that display just the first bit of every tiddler in 
> order. Works great, but I'd like to limit the number of tiddler it 
> displays to say 5. How do I get about to do that? 
>

Try (untested
)

> <<forEachTiddler 
>  where 
>  'tiddler.tags.contains("information")' 
>  sortBy 
>  'store.getValue(tiddler,"created")' 
>  descending 
>  write 
>  '(index < 5) ?"\n@@font-size:1.5em;[["+tiddler.title+"]]@@@@color:#999; - 
> " + 

Date.convertFromYYYYMMDDHHMM(store.getValue(tiddler,"created")).formatString("YYYY/
 
>
> 0MM/0DD")+" - "+tiddler.modifier+"@@\n" + 
>  "{{excerpt{\n" + 
>  (tiddler.text.match("/%%/") ? 
>  tiddler.text.substr(0,tiddler.text.indexOf("/%%/")) : 
>  tiddler.text.substr(0,300)) + 
>  " ...\n[[more ...|"+tiddler.title+"]]\n----\n}}}";' 
> >> 
>
See 
http://tiddlywiki.abego-software.de/#%5B%5BList%20the%20first%2010%20tiddlers%20that%20have%20the%20tag%20'basic'%5D%5D

<http://tiddlywiki.abego-software.de/#%5B%5BList%20the%20first%2010%20tiddlers%20that%20have%20the%20tag%20'basic'%5D%5D>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.

Reply via email to