Having calendar plugin links calling custom edittemplate

16 views
Skip to first unread message

dad...@orange.fr

unread,
Nov 7, 2009, 11:59:53 AM11/7/09
to TiddlyWiki
Hello this is a simplified question in my quest to have a custom
edittemplate called when user clicks on a date in the calendar macro
table.
I don't know how to do this, reading the calendar core code did not
show for me but may be its author could help. There a lot of questions
about this macro that is definitively one of the most used advanced
functions of TW.
Regards.
Dadoo

Eric Shulman

unread,
Nov 7, 2009, 12:51:52 PM11/7/09
to TiddlyWiki
> Hello this is a simplified question in my quest to have a custom
> edittemplate called when user clicks on a date in the calendar macro
> table.

The question didn't need to be simplified... I've answered it twice
already. Here's the 3rd time:

CalendarPlugin's output contains ***links*** to tiddlers, and clicking
a link to a tiddler ***displays*** that tiddler, even if it doesn't
yet exist (in which case, the core displays a default message). At no
time does the CalendarPlugin ***create*** tiddlers, so using a custom
EditTemplate simply doesn't apply in this situation.

If, in the future, I find myself doing a re-write of the code in
CalendarPlugin, I will consider changing the design to do what you
want... but that would also change how it works for everyone else...
so I'm reluctant to simply change it without carefully considering the
existing use-cases and how they would be impacted.

Also, please don't ask the same question over and over just because
you didn't like the answer you got the first time....this does not
make me inclined to put in the effort.

respectfully,
-e

Måns

unread,
Nov 7, 2009, 3:46:56 PM11/7/09
to TiddlyWiki
Hi Dadoo¨

Have a look at Tobias' tbsGTD TiddlyWiki...
You can create reminders directly from the calendar in his setup..
http://tbgtd.tiddlyspot.com/#desk

You'll find the same functionality in the d3 tw-variant you can choose
to create on tiddlyspot.com.
Maybe it's not a rewrite of the calendarplugin you need - but an
option to create tiddlers with predefined tags, which invoke custom
edittemplates.
It should be fairly easy to do that - and you don't even need the
CalendarPlugin.
Just add a <<newJournal "YYY MMM DD" "journal">> button and make a
custom journalEditTemplate with the fields you want.
Of course you'll need http://www.tiddlytools.com/#TaggedTemplateTweak
to make it work...

If you use custom edittemplates you'll need to save the tiddler and
reopen it to make the custom edittemplate active.. However the
remindermacro in Tobias' TW (and d3) is written directly into the new
tiddler and you can edit the macro right away.

Regards Måns Mårtensson

dad...@orange.fr

unread,
Nov 8, 2009, 4:45:48 AM11/8/09
to TiddlyWiki
Thank you for your help both of you and please consider that if I
reposted my question is not because I did not like the answer but
because I could not understand How to make it work.
I tryed for 2 weeks and posted allmost 5 five times in the same topic,
sorry.
English is not my first language and TW is quite complex.
Anyway I apologize for any trouble I may have done this way, and I
will do my best to undo this.
Måns is right and I definitively not ask for a rewrite that could
interferate with other people work.
Sorry about all the noise.
I'll try last advices this click.
Dadoo (confused)

dad...@orange.fr

unread,
Nov 8, 2009, 9:18:09 AM11/8/09
to TiddlyWiki
So this is it ^^ :
1 - I protected with tiddlerPasswordPlugin every tiddler with
educational content tagged as noedit and used a specific tiddler for
displaying and editing that requires a password.
2 - I let TW use the standard templates when a calendar date link is
pressed.
This allows the writer to protect or unprotect the content if it is
his will and let the calendar free for editing or even protect some
dates.
I would like to thank everyone for explaining how those plugins are
working.
If someone is in need of a sample just write me at daddoo(à)orange.fr
and I'll send one.
I'm very happy to have this working, thank you to bear with me.
Dadoo (overjoyed)
Reply all
Reply to author
Forward
0 new messages