Extendable calendar

582 views
Skip to first unread message

RickL

unread,
Oct 23, 2014, 1:34:58 PM10/23/14
to tiddl...@googlegroups.com
I have been using the Extendable Calendar plugin from buggyj, but when I try to upgrade the TW it breaks the macro

This is TW5 using the plugin from bjtools.tiddlyspot.com

Any help is appreciated.

Thanks
Rick

BJ

unread,
Oct 23, 2014, 2:36:22 PM10/23/14
to tiddl...@googlegroups.com
Hi Rick,
the implementation of dates as changed inside tiddlywiki (probably to support different languages) - I will update the macro. I will post a message here when It is available (should be either tonight or tomorrow).

cheers

BJ

RickL

unread,
Oct 27, 2014, 1:07:38 PM10/27/14
to tiddl...@googlegroups.com
Any news on the updated macro? I use this calendar daily!
Thanks.

BJ

unread,
Oct 27, 2014, 2:37:44 PM10/27/14
to tiddl...@googlegroups.com

Hi Rick,
I have modified to plugin, and added support for journal tiddlers. I have been busy seeing family the last couple of days and not had a chance to do a final test - it will  be out soon.

Cheers

BJ

BJ

unread,
Oct 28, 2014, 2:30:53 PM10/28/14
to tiddl...@googlegroups.com

There is a new version at http://bjtools.tiddlyspot.com to work with 5.1.3 and above. I have also added support for journal tiddlers.


Cheers

BJ

On Monday, October 27, 2014 5:07:38 PM UTC, RickL wrote:

Danielo Rodríguez

unread,
Oct 28, 2014, 2:53:54 PM10/28/14
to tiddl...@googlegroups.com
Very nice!

I find much more useful how is right now, where you only have links for those days that have an entry.

COOL

BJ

unread,
Oct 28, 2014, 5:30:25 PM10/28/14
to tiddl...@googlegroups.com
Thanks!

RickL

unread,
Oct 29, 2014, 6:56:35 AM10/29/14
to tiddl...@googlegroups.com
I use a different date format for new tiddlers than the DDth MMM YYYY that seems to be standard in the macro so this doesn't work for me. If I install in a new empty TW it works.
Can I change the date format so it will work with the format in my calendar TW? - I like the year first for sorting purposes so use YY0MM0DD, DDD hh12:0mm pm.

Thanks

Ken Gray

unread,
Oct 29, 2014, 2:18:50 PM10/29/14
to tiddl...@googlegroups.com
wow!!!  nice!
I have a tiddler that is always at the top and I have room to put three months side by side.  last month/this month/next month is there a way for it to figure current month -/+ 1?

BJ

unread,
Oct 29, 2014, 2:33:23 PM10/29/14
to tiddl...@googlegroups.com
HI Rick,
I have added a new formatter, the old one is still there - what format were you using - and what were you passing into the macro to display a calendar??

BJ

BJ

unread,
Oct 29, 2014, 2:38:57 PM10/29/14
to tiddl...@googlegroups.com


On Wednesday, October 29, 2014 6:18:50 PM UTC, Ken Gray wrote:
wow!!!  nice!
I have a tiddler that is always at the top and I have room to put three months side by side.  last month/this month/next month is there a way for it to figure current month -/+ 1?

Hi Ken,
there is no way at present to do this (as far as I know) - either I would have to extend the macro, or the parameters would need to be supplied by other means (maybe a list or other macros).


Rick

unread,
Oct 29, 2014, 3:25:56 PM10/29/14
to tiddl...@googlegroups.com
Not sure I understand the question, sorry.

I am using the latest version of TW5.
When I use the "New Journal" or "New Journal Here" buttons in the empty TW5 with the plugin imported I get a new tiddler that shows up with a link on the calendar when it is created.
In my TW with the different date format, the link in the new calendar does not show up.

As for what I am "...passing into the macro..."  I have no clue!

Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/yHdzqZWJATU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

BJ

unread,
Oct 29, 2014, 4:06:50 PM10/29/14
to tiddl...@googlegroups.com
For me they are two issues:
1) I understood that you were using the macro before I made the new version - the new version should be able to work in the same way as the old version - are you still using it this way (the old way)?
2) the new version of the macro supports only only ddth mm yyyy format at the moment. - I do not intend to add different formats at this time - there may be a 'core' version of this macro sometime soon and I do not want spend my time on functionality that would be made obsolete.

BJ

unread,
Oct 29, 2014, 4:46:51 PM10/29/14
to tiddl...@googlegroups.com

On Wednesday, October 29, 2014 8:06:50 PM UTC, BJ wrote:
For me they are two issues:
1) I understood that you were using the macro before I made the new version - the new version should be able to work in the same way as the old version - are you still using it this way (the old way)?
2) the new version of the macro supports only only ddth mm yyyy format at the moment. - I do not intend to add different formats at this time - there may be a 'core' version of this macro sometime soon and I do not want spend my time on functionality that would be made obsolete.
Actual the change looks simple so I will do it anyway!

Lourens Rhijnsburger

unread,
Oct 30, 2014, 5:00:35 AM10/30/14
to tiddl...@googlegroups.com
Hi BJ,

With using the old deprecated extension format, the week starts on Tuesday, after upgrading.
I would like it back to Monday, does not seem to work what I try, please advise what can I do?

thx
Lawrence

Op woensdag 29 oktober 2014 21:46:51 UTC+1 schreef BJ:

This e-mail may contain information which is privileged or confidential and contains information (including possible attachments) proprietary to Doedijns B.V. If you received this e-mail in error, please notify us immediately by e-mail or telephone and delete the e-mail without reading, copying or disclosing its contents to any other person. In the Netherlands, our business is conducted by Doedijns B.V. with its statutory seat in Waddinxveen and registered in the Trade Register of the Chamber of Commerce, number 34139835. Visit our website www.doedijns.com.

Rick

unread,
Oct 30, 2014, 7:07:25 AM10/30/14
to tiddl...@googlegroups.com
Super!

Ken Gray

unread,
Oct 30, 2014, 9:55:03 AM10/30/14
to tiddl...@googlegroups.com
 thanks. 
I thought I could put them next to each other and manually put in the months I want but it puts them in vertically.  is there a way I can get them side by side?

<<calendar "2014" 9>><<calendar "">><<calendar "2014" 11>>

BJ

unread,
Oct 30, 2014, 9:55:12 AM10/30/14
to tiddl...@googlegroups.com

Hi Lawrence,
you need to edit the config tiddler $:/config/bj/Calendar.json, within the journals section change lastDayOfWeek to 0, ie

  "journals": {
    "lastDayOfWeek": "0"

Cheers

BJ

Lourens Rhijnsburger

unread,
Oct 30, 2014, 10:28:35 AM10/30/14
to tiddl...@googlegroups.com
Thanks BJ,

I'm Sure I tried that before, but nevermind it is now working. I want to stay at deprecated 
<<calendar 2014 "" journals>>
because I want to make journals as appointments in the future from the calendar-view.

thx again,
Lawrence

Op donderdag 30 oktober 2014 14:55:12 UTC+1 schreef BJ:

BJ

unread,
Oct 30, 2014, 11:05:44 AM10/30/14
to tiddl...@googlegroups.com

you should do this
<table>
  <tr>
    <td><<calendar "2014" 9>></td>
    <td><<calendar "" "">></td>
    <td><<calendar "2014" 11>></td>
  </tr>
</table>

I have noted that this show a bug in the macro

BJ

Ken Gray

unread,
Oct 30, 2014, 3:42:42 PM10/30/14
to tiddl...@googlegroups.com
Perfect...thanks...

do you get a weird display when doing November of this year?
<<calendar "2014" 11>>
vs.
<<calendar "2015" 11>>

Lourens Rhijnsburger

unread,
Nov 3, 2014, 3:21:56 AM11/3/14
to tiddl...@googlegroups.com
BJ,

Please find another bug report:
For making Journals in the future December does not work. If I click on a date to make new journal in December it opens draft with 

2 2015

instead 2 December 2014, it works with other months. ( my Journal setting is DD MMM YYYY )
If I change the Journal to this correct name, it will not show up as link the month December.

Or is some setting wrong in my TW?

thx
Lourens

Op donderdag 30 oktober 2014 15:28:35 UTC+1 schreef Lourens Rhijnsburger:

BJ

unread,
Nov 5, 2014, 2:09:14 PM11/5/14
to tiddl...@googlegroups.com


On Monday, November 3, 2014 8:21:56 AM UTC, Lourens Rhijnsburger wrote:
BJ,

Please find another bug report:
For making Journals in the future December does not work. If I click on a date to make new journal in December it opens draft with 

2 2015

instead 2 December 2014, it works with other months. ( my Journal setting is DD MMM YYYY )
If I change the Journal to this correct name, it will not show up as link the month December.

Or is some setting wrong in my TW?

thx
Lourens

Hi Lourens,
I have updated the calendar plugin - it now includes a diary macro which should be used in place of the calendar macro when you wish to create future journal entries,

cheers

BJ

Lourens Rhijnsburger

unread,
Nov 6, 2014, 2:54:11 AM11/6/14
to tiddl...@googlegroups.com
Cool it works!! (as intended) You can now change your name BJ! 
(tip: If you change to BugfreeJef you can keep the initials)
Thx
Lourens

Op woensdag 5 november 2014 20:09:14 UTC+1 schreef BJ:

Stephan Hradek

unread,
Nov 6, 2014, 3:35:08 AM11/6/14
to tiddl...@googlegroups.com


Am Dienstag, 28. Oktober 2014 19:30:53 UTC+1 schrieb BJ:

There is a new version at http://bjtools.tiddlyspot.com to work with 5.1.3 and above. I have also added support for journal tiddlers.

Nice.

But could you please add a few more classes?

That way one could, with some CSS, format the Journal links to missing journals (so in the year-view on your page) the same like normal text. That way the real entries would be more obvious. I think about something like <td class="bj-day">

Additionally, if you can't remove, in the year-view the empty cells between the months, I suggest to add a class there too <td class="bj-distance"> That way it would be possible to eliminate the top and bottom border with some css and also to adjust the distance. Would make a better visual appearance, I assume.

BJ

unread,
Nov 6, 2014, 1:22:22 PM11/6/14
to tiddl...@googlegroups.com


On Thursday, November 6, 2014 8:35:08 AM UTC, Stephan Hradek wrote:


Am Dienstag, 28. Oktober 2014 19:30:53 UTC+1 schrieb BJ:

There is a new version at http://bjtools.tiddlyspot.com to work with 5.1.3 and above. I have also added support for journal tiddlers.

Nice.

thanks :)
But could you please add a few more classes?

I would say the plugin is experimental, it is constructed from wiki text so there is not the possibility to add classes - it probably should be replaced with html and make as a widget. I would like to develop it more but I don't have time at the moment.

That way one could, with some CSS, format the Journal links to missing journals (so in the year-view on your page) the same like normal text. That way the real entries would be more obvious. I think about something like <td class="bj-day">
 
The default in the new calendar tab should be formatted that way

BJ

unread,
Nov 6, 2014, 1:28:10 PM11/6/14
to tiddl...@googlegroups.com


On Thursday, November 6, 2014 7:54:11 AM UTC, Lourens Rhijnsburger wrote:
Cool it works!! (as intended) You can now change your name BJ! 
(tip: If you change to BugfreeJef you can keep the initials)
:) maybe, but I doubt that my debugging days are finished  (in general)

Stephan Hradek

unread,
Nov 6, 2014, 3:17:37 PM11/6/14
to tiddl...@googlegroups.com
Just a hint.

Instead of

function daysInMonth(iMonth, iYear){
               
return 32 - new Date(iYear, iMonth-1, 32).getDate();
       
}




you can write:

function daysInMonth(iMonth, iYear){
               
return new Date(iYear, iMonth, 0).getDate();
       
}




Am Donnerstag, 6. November 2014 19:22:22 UTC+1 schrieb BJ:

 > >    But could you please add a few more classes?


>    I would say the plugin is experimental, it is constructed from wiki text so there is not the possibility to add classes


Maybe put a classed div around it? That would help I guess.

Also if you put into all the seperator cells if the year calendar, except for the first one, a "~", the separting column wouldn't have the vertical borders.

 

> > That way one could, with some CSS, format the Journal links to missing journals (so in the year-view on your page) the same like normal text. That way the real entries would be more obvious. I think about something like <td class="bj-day">

     
> The default in the new calendar tab should be formatted that way


Ah! Now I see! I was confused by the fact that the month view shows black numbers while the year view shows them blue. I didn't notice the grey background for dates with entries.

Can weekends be formatted differently? (add a span) Can the current day be higlighted?

BJ

unread,
Nov 6, 2014, 4:39:24 PM11/6/14
to tiddl...@googlegroups.com


On Thursday, November 6, 2014 8:17:37 PM UTC, Stephan Hradek wrote:
Just a hint.

Instead of

function daysInMonth(iMonth, iYear){
               
return 32 - new Date(iYear, iMonth-1, 32).getDate();
       
}




you can write:

function daysInMonth(iMonth, iYear){
               
return new Date(iYear, iMonth, 0).getDate();
       
}




Am Donnerstag, 6. November 2014 19:22:22 UTC+1 schrieb BJ:

 > >    But could you please add a few more classes?


>    I would say the plugin is experimental, it is constructed from wiki text so there is not the possibility to add classes


Maybe put a classed div around it? That would help I guess.

It is possible to add inline styles to tables, so something should be possible.
 
Also if you put into all the seperator cells if the year calendar, except for the first one, a "~", the separting column wouldn't have the vertical borders.

I have a look
 

> > That way one could, with some CSS, format the Journal links to missing journals (so in the year-view on your page) the same like normal text. That way the real entries would be more obvious. I think about something like <td class="bj-day">

     
> The default in the new calendar tab should be formatted that way


Ah! Now I see! I was confused by the fact that the month view shows black numbers while the year view shows them blue. I didn't notice the grey background for dates with entries.

Can weekends be formatted differently? (add a span) Can the current day be higlighted?

at present the highlighting of the present day (enabled in the options tiddler) is the same as that of a existing journal, but this could  be changed, added weekend maybe a bit more involved (dont know if the JS date object has a weekend interface)
I am at present preparing to move to central america for the winter, and leave in a couple of days, so am quite occupied at the moment.

 
 
 
Reply all
Reply to author
Forward
0 new messages