hello everyone
i would like to make a version of the weblog plugin which uses the
created date to order the tiddlers and ignores the modifed date.
Anyone have any idea how to modify this tiddler to do this? thanks as
always!

var daysOrPosts = "posts";
var numOfDaysOrPosts = "7";
var restrictTag = "journal";

function displayTopTiddlers()
{
if(window.location.hash) daysOrPosts = "";
if(daysOrPosts == "posts")
{
var tiddlerNames = store.reverseLookup
("tags","systemTiddlers",false,"modified");
if (tiddlerNames.length < numOfDaysOrPosts)
numOfDaysOrPosts = tiddlerNames.length;
for(var t = tiddlerNames.length-
numOfDaysOrPosts;t<=tiddlerNames.length-1;t++)
if (restrictTag == "" || tiddlerNames[t].isTagged(restrictTag))
story.displayTiddler("top",tiddlerNames
[t].title,DEFAULT_VIEW_TEMPLATE,false,false);
}
if (daysOrPosts == "days"){
var lastDay = "";
var tiddlerNames = store.reverseLookup
("tags","systemTiddlers",false,"modified");
var t = tiddlerNames.length -1;
var tFollower = 0;
for(t;t>=0;t) if(numOfDaysOrPosts >= 0){
var theDay = tiddlerNames[t].modified.convertToYYYYMMDDHHMM().substr
(0,8);
if(theDay != lastDay){
numOfDaysOrPosts = numOfDaysOrPosts -1;
lastDay = theDay;
tFollower = t;
}
}

for(tFollower = tFollower+1; tFollower < tiddlerNames.length;tFollower+
+){
if (restrictTag == "" || tiddlerNames[tFollower].isTagged
(restrictTag))
displayTiddler("top",tiddlerNames
[tFollower].title,DEFAULT_VIEW_TEMPLATE,false,false);
}

}
}

window.original_restart = window.restart;
window.restart = function()
{
window.original_restart();
displayTopTiddlers();
}
--~--~---------~--~----~------------~-------~--~----~
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 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to