Another suggestion. Instead of recording the time of viewing of tiddler the [[LogBook]] I think it would be better to save the time in a custom field in the tiddler itself. In this way the info is always available within the tiddler itself. Any script can then scan the tiddler for this information.
On Jan 26, 8:20 am, passingby <[email protected]> wrote: > I am just thinking out loud over here. Maybe you could put something > in the view template which triggers a javascript code which records > the time a tiddler was opened in a separate tiddler. Then another > script should read that tiddler to produce that information in a > formatted form you desire. It would be like putting this into > ViewTemplate: > <span macro="tiddler RecordWhenOpened"></span> > And in the [[RecordWhenOpened]] tiddler would be an inline javascript > which can get access the name of the tiddler into which that script > has been transcluded and then write it down in a separate [[LogBook]] > tiddler along with the current time. > You then would need another script in another tiddler which can read > [[LogBook]] and generate a report in tabular form. > I am off to a weeklong trip to my village(would not have access to a > laptop or internet) so cannot try this myself but I think this is do- > able. > > On Jan 26, 8:02 am, Måns <[email protected]> wrote: > > > Hi Tony > > > I want to create a list of tiddlers ordered by the date the tiddler > > > > was last opened. > > > I don't think a tiddlywiki has any way to know when you have visited/shown a > > tiddler... > > However if you install > > StorySaverPlugin<http://www.tiddlytools.com/#StorySaverPlugin> you > > can save a "story" of currently open tiddlers or/and automatically save the > > current story view in a cookie (txtSavedStory) as a space-separated list of > > tiddler titles in the order they are displayed. > > Then, when you reload the document, the plugin automatically restores > > the previous view from the saved cookie value, so that you can just resume > > working from where you left off.... Read more about Eric's > > StorySaverPlugin<http://www.tiddlytools.com/#StorySaverPlugin> > > here <http://www.tiddlytools.com/#StorySaverPluginInfo>. > > > Cheers Måns Mårtensson > > <http://www.tiddlytools.com/#StorySaverPlugin> > > > > It will be like a breadcrumb trail (though I want to use it as a tool > > > for maintaining/culling old tiddlers that I rarely visit). > > > > I can use the For Each Tiddler functionality to create the list > > > ordered by date 'created' or 'modified' e.g. > > > > <<forEachTiddler > > > where > > > 'tiddler.created' > > > sortBy 'tiddler.created' > > > descending > > > > I have examined all the examples on the FET site without finding one > > > that satisfies my particular need. > > > > So my question: What can i substitute for 'tiddler.created' in the > > > above piece of code to give me the tiddlers ordered by when they were > > > last opened? > > > > And a supplamentary question, how could I have discovered this answer > > > for myself? > > > > Tony -- 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.

