Hi, I've updated the simplecalendar plugin ; in the latest version you don't need to create the state tiddler anymore before calling the macro. It will be created when needed. Grab the plugin at http://simplecalendar5-1-19.tiddlyspot.com/
Regards FrD Le vendredi 8 février 2019 17:59:21 UTC+1, FrD a écrit : > > Hi, > > Just create the tiddler "MyStateTiddler" and then your macro call should > work. > > After having created the tiddler, open the tiddler containing your macro > call (<<simplecalendar mycalendar yearState:"MyStateTiddler!!year" > monthState:"MyStateTiddler!!month">>) and close it. It will refresh its > content and display your calendar. > > Regards > > FrD > > Le vendredi 8 février 2019 17:25:01 UTC+1, Artem Ivanov a écrit : >> >> What I mean is, after uninstalling the plugin and a fresh install of the >> 5.1.19 version, >> >> <<simplecalendar mycalendar yearState:"MyStateTiddler!!year" >> monthState:"MyStateTiddler!!month">> >> >> does not work. >> >> tia >> >> On Friday, February 8, 2019 at 3:35:28 AM UTC-5, FrD wrote: >>> >>> Hi, >>> >>> For now you need to create the state tiddler before calling the >>> simplecalendar macro. This behavior didn't change from the previous version. >>> The reason is that a macro can only return a string and should not >>> modify a tiddler or create a new one (only widgets should do that). So it >>> was easier for me to build the simplecalendar macro this way. >>> >>> But the code could be improved and the state tiddler could be created at >>> the first click on a month or year button. I'll have a look and hopefully >>> will come back with a new version ... >>> >>> Regards >>> >>> FrD >>> >>> Le vendredi 8 février 2019 01:29:13 UTC+1, Artem Ivanov a écrit : >>>> >>>> Hi FrD, >>>> >>>> Thank you, this version solved the issue. However, now when I use >>>> >>>> <<simplecalendar mycalendar yearState:"MyStateTiddler!!year" >>>> monthState:"MyStateTiddler!!month">> >>>> >>>> I get this error: >>>> >>>> The state tiddler for the year does not exist ; create it before >>>> calling the simplecalendar macro >>>> >>>> Should I just use 5.1.17 for now? >>>> >>>> On Wednesday, February 6, 2019 at 5:04:16 PM UTC-5, FrD wrote: >>>>> >>>>> Hi, >>>>> >>>>> I've made some changes in the tiddler >>>>> $:/plugins/frd/simplecalendar/DaysTemplate. >>>>> Could you test the new version of the plugin from >>>>> http://simplecalendar5-1-19.tiddlyspot.com/ >>>>> ? >>>>> <http://simplecalendar5-1-19.tiddlyspot.com/> >>>>> And let me know how it works ... >>>>> >>>>> Regards >>>>> >>>>> FrD >>>>> >>>>> Le mercredi 6 février 2019 20:03:42 UTC+1, Artem Ivanov a écrit : >>>>>> >>>>>> Newbie here, >>>>>> >>>>>> In a plugin i recently installed (simplecalendar), when calling out a >>>>>> defined variable as $(style)$, it doesn't return the data but the >>>>>> variable itself. >>>>>> Not sure how else to put this. This is from the plugin's default code >>>>>> of $:/plugins/frd/simplecalendar/DaysTemplate: >>>>>> >>>>>> <$set name="style" value=<<now "ItemYYYY0MM0DD0hh0mm0ss">>> >>>>>> <$wikify name="itemTitle" text="$:/simplecalendar/$(style)$"> >>>>>> <$button class="tc-btn-invisible btn-toolbar-item" tooltip="Create >>>>>> new item" actions=<<actions-createItem>>> >>>>>> {{$:/core/images/new-button}} >>>>>> </$button> >>>>>> </$wikify> >>>>>> </$set> >>>>>> >>>>>> So here the itemTitle is defined as literally >>>>>> "$:/simplecalendar/$(style)$" and not that defined by style. >>>>>> >>>>>> Am I missing a setting? >>>>>> >>>>>> tia >>>>>> >>>>>> >>>>>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f3e7cd38-f0f9-48ca-99ca-5d258b5fd184%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

