Hi homeops,

A)

I never quite understood for what reasons there's two of them but have
a look at:

http://tiddlytools.com/#DatePlugin
http://tiddlytools.com/#CalendarPlugin

I have to admit that I don't quite like the way holidays are
defined... it's just a simple array in the plugin code that neither
gives you an opportunity to display a title for your dates, nor does
it allow you to define different date-categories, e.g. "holidays",
"birthdays", "whatnots", etc...

If you need reminders, check out:

http://remindermacros.tiddlyspot.com/

...or if you're going full fledged GTD, look at ticklers in:
http://mgsd.tiddlyspot.com

...or have a look at my:
http://tbgtd.tiddlyspot.com


B)

Alternatively, you could have a tiddler called "date" ...which you
would have date-categories tagging to ...which in turn you could use
as tags on date-tiddlers. Using TiddlerTweaker or a custom View- or
EditTemplate, you could edit the "created" field of those date-
tiddlers to match your desired date. With a simple script you could
then fetch all date-tiddlers for today or the next x-days for which
the created date matches and have them grouped by date-category.

C)

Simpler still, you could have a tiddler for each date-category into
which you would put line-items for each date under headings that
correspond to the day, like so...

Tiddler[[Holidays]] ...tagged: DateCategory
!January
!!01.01.
New Years
!August
!!28.08.
My new holiday

Tiddler[[Birthdays]] ...tagged: DateCategory
!28.08.
[[Mum]]:1966


...then a script could check whether or not there are sections for the
current day in each date-category tiddler and if so, fetch the line
items and return the dates under sections headings of each found
category, like so:

tiddler[[GetDatesForToday]]
<script>
var c,cats,d,dt,i,out='',txt;
cats=store.getTaggedTiddlers('DateCategory');
for(c=0;c<cats.length;c++){
  d=new Date();
  dt=String.zeroPad(d.getDate(),2)+'.'+String.zeroPad(d.getMonth()
+1,2)+'.';
  txt='';
  txt=store.getTiddlerText(cats[c].title+'##'+dt);
  if(!txt||txt=='')continue;
  out+='!'+cats[c].title+'\n';
  txt=txt.split('\n');
  for(t=0;t<txt.length;t++){
    d=txt[t].split(':');
    out+='*'+d[0] +(d[1]?' ('+d[1]+')':'')+'\n';
  }
}
return out;
</script>


Enjoy and good luck,
Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@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