[tw] Re: Inline script for grouping and listing on multiple fields

2012-12-11 Thread passingby
wow. now that I am using just a single field to store date, I find out that I can easily use MatchTagsPlugin to produce a list in chronological order: <> On Monday, December 10, 2012 8:38:19 PM UTC+5:30, passingby wrote: > > After a lot of tinkering and experimenting with javascript snippets foun

[tw] Re: Inline script for grouping and listing on multiple fields

2012-12-11 Thread Shavin
wow. now that I am using just a single field to store date, I find out that I can easily use MatchTagsPlugin to produce a list in chronological order: <> On Wednesday, December 5, 2012 11:04:55 PM UTC+5:30, passingby wrote: > > Hello friends, > I am creating a simple TW to note down the events of

[tw] Re: Inline script for grouping and listing on multiple fields

2012-12-10 Thread passingby
After a lot of tinkering and experimenting with javascript snippets found online I have finally decided that the simplest way is the best way. I decided to do away with event_year, event_month, event_date fields. Instead just kept a field event_when. And in the associated textbox I take care to

[tw] Re: Inline script for grouping and listing on multiple fields

2012-12-06 Thread whatever
Hi! Try this: var years = []; var e, f; var eventsAll = store.getTaggedTiddlers("Event"); for (e = 0; e < eventsAll.length; e++) { years.pushUnique(eventsAll[e].fields.event_year); } years.sort(); for (f = 0; f < years.length; f++) { wikify("!" + years[f] + "\n", place); f