Hi Mike,

Getting the x most recent tiddlers with a certain tag is rather
simple. Here's the modified script:

<script>
if('$1'!='$'+'1'){
        var tids=
        store.getTiddlers('modified','excludeLists').reverse();
        var num=0;
        var max='$2'=='$'+'2'?1:$2;
        for (var i=0; i<tids.length; i++){
                if(tids[i].tags.contains('$1')){
                        num++;
                        wikify('![['+tids[i].title+']]\n'+
                        store.getTiddlerText(tids[i].title),place);
                        if(num>=max)return;
                }
        }
        wikify('@@color:red;'+
                'No tiddler found tagging to \'$1\'!@@',place);
}
</script>

Just as before, invoke it like this:

<<tiddler taggedRecent with: [[some Tag]] integerNumTiddlers>>

Tobias.

-- 
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