Attachment is a small tweak of *TiddlyWiki.prototype.filterTiddlers*, Installation: create a tiddler, copy and paste all contents of the *filterTiddlersTweak.js*, tag it with 'systemConfig', save-and-reload.
Usage: 1) automatically open the last 10 tiddlers tagged with 'tagfoo' while the TW document has been loading. add or modify the text of DefaultTiddlers: [tag[tagfoo]][sort[-modified]][limit[10]] 2) use the macro <list>> to display a list of last 10 tiddlers tagged with 'tagfoo' <<list filter [tag[tagfoo]][sort[-modified]][limit[10]]>> 3) create a button clicking to open the last 10 tiddlers tagged with 'tagfoo' <<tiddler _dummy with:{{ window._recentTiddlers = function(tag,n){ story.closeAllTiddlers(); var tiddlers=store.filterTiddlers('[tag['+tag+']][sort[-modified]][limit['+n+']]'); story.displayTiddlers(null,tiddlers); return false; } }}>><html><a class="button" href="javascript:;" onclick="_recentTiddlers.call(this,'tagfoo',10);">Last 10</a></html> cheers, -- Bram Chen Website: http://ptw.sf.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---
filterTiddlersTweak.js
Description: JavaScript source