FrD, Thanks, I suppose if I had to choose it would be;
sc_linkNavigateToOrCreateEditModeJournal : navigate to a journal or create it in edit mode - Does this mean if it exists it opens in view mode, if it does not the new one opens in edit mode? Could you perhaps include user defined actions such as <<simplecal-onclickday-actions>> where the user can then define \define simplecal-onclickday-actions() <$action-sendmessage $message="tm-add-tag" param="Journal">>/> <$action-setfield $field=journal-date $value=<<now "YYYY0MM0DD0hh0mm0ss000">>/> \end and the above will add the tag and fieldname the user desires, and if not defined will do nothing? Thanks Tony On Thursday, February 7, 2019 at 6:45:27 PM UTC+11, FrD wrote: > > Hi TonyM, > > I'd be pleased to help you. Can you bring me bit more of the context ? > > I assume you want to create a "journal" tiddler by clicking on a cell on > the calendar. The macro invoked by clicking on a date is the one declared > in the config tiddler : see for instance > $:/plugins/frd/simplecalendar/CalendarConfigDefault > > The macro is the value of the "cellContent" index. > There are 4 different values corresponding to 4 different macros. The code > of the macros is in > $:/plugins/frd/simplecalendar/CalendarCellContentMacros > > sc_basic : doesn't open or create a journal tiddler > sc_linkNavigateToJournal : navigate to the journal tiddler > sc_linkNavigateToOrCreateViewModeJournal : navigate to a journal or create > it in view mode > sc_linkNavigateToOrCreateEditModeJournal : navigate to a journal or create > it in edit mode > > So if you tell me the desired behavior (from the four described above) I > could write a 5th macro as a modified version that could set a tag and a > field as required. > > Hope this clarifies a bit > > Regards > > FrD > > > Le mercredi 6 février 2019 23:34:20 UTC+1, TonyM a écrit : >> >> FrD, >> >> I was just testing the update, and realised I wanted to make a change to >> include a tag of "Journal" and add a field with the full date in it eg; >> journal-date with the value >> journal-date=<<now "YYYY0MM0DD0hh0mm0ss000">> >> >> However my initial attempt failed. >> >> Would you be able to advise where I can do this please? >> >> I am also keen to bring forward week numbers and make a few other >> adjustments, I would be happy to share back, but I need to work it out in >> the first place >> >> Thanks >> Tony >> >> >> On Thursday, February 7, 2019 at 9:04:16 AM UTC+11, 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/7e81a249-90fb-423c-ac26-0dcee8670d72%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

