Read the statement by Michael Teeuw here.
Calendar modification
-
Can somebody please post their config file with the maximumNumberOfDays line inserted. I’m not sure what I’m doing wrong but everytime I try to adjust this I crash my config file. Everything else is working perfect.
Thanks
-
@aarinsingh Could you copy paste your config including the maximumNumberOfDays (so I can try to find what you’re doing wrong). Don’t forget to remove sensitive data.
-
Here is my info @aarinsingh , it doesn’t crash but it is also not limiting the number of days. From what I can see at a quick glance is that this was using a method that may have been replaced in the load process for this module, because it seems to only be using the default for this setting. I may follow to code later and see how this is loading and why my setting is being ignored.
{ module: 'calendar', header: 'Events', position: 'top_left', maximumNumberOfDays: 7, config: { calendars: [ { symbol: 'calendar-check-o ', url: 'https://calendar.google.com/calendar/ical/your-info' } ] } },
Note from admin: Please use Markdown on code snippets!
-
Put it after config: { and it will work
-
maximumNumberOfDays
should be part of theconfig
object:{ module: 'calendar', header: 'Events', position: 'top_left', config: { maximumNumberOfDays: 7, calendars: [ { symbol: 'calendar-check-o ', url: 'https://calendar.google.com/calendar/ical/your-info' } ] } },
-
That makes perfect sense. :) sorry didn’t catch that…
-
@KirAsh4 Weird. I had to make mine public or else the dashboard wont be able to display saying “No Events”
-
@MagicCrumps1, perhaps you were using the wrong URL? There’s both a public and a private one. If you use the public URL, then you must also set your calendar to public view. But the private URL has the authentication key in it. No need to make the calendar public.
-
@KirAsh4 Of course that worked. Thanks for the silver bullet
-
Hey guys sorry I’ve been away so I haven’t seen all these posts but I would recommend putting the calendar in monthly mode so events to disappear prematurely.