adding date picker to sidebar

71 views
Skip to first unread message

rdata...@gmail.com

unread,
Nov 2, 2017, 10:14:21 AM11/2/17
to tiddl...@googlegroups.com
I want simple calendar plugin added to sidebar but I'm getting an odd message just where the calendar must appear: The state tiddler for the year does not exist ; create it before calling the simplecalendar macro

http://simplecalendar.tiddlyspot.com/

My steps to reproduce the issue:

1- installed plugin
2- create tiddler with title: Calendar and content: <<simplecalendar >>
3- Added  $:/tags/PageTemplate and  $:/tags/SideBar   to tiddle tags
4- added <$transclude tiddler="$:/simplecalendar" mode="inline"/>  to $:/core/ui/PageTemplate/sidebar

Editing /core/ui/PageTemplate/sidebar I get : Recursive transclusion error in transclude widget


I suppose any of my steps are wrong.
How can I add the calendar just below buttons?


Mark S.

unread,
Nov 2, 2017, 12:18:46 PM11/2/17
to TiddlyWiki
I don't think you need step #4 nor to add $:/tags/PageTemplate (unless there is some other goal than to have a sidebar calendar).

In the sidebar the Calendar is transcluded and so doesn't think of itself as the current Tiddler. You need to wrap the macro like this so it will know to use Calendar for its state variables:

<$tiddler tiddler="Calendar">
<
<simplecalendar>>
</$tiddler>

Good luck!
Mark

rdata...@gmail.com

unread,
Nov 2, 2017, 1:00:13 PM11/2/17
to TiddlyWiki
Worked like a charm!!!

thanks
Reply all
Reply to author
Forward
0 new messages