Page 1 of 1

Want CGCalendar To Show week Only - Sunday-Saturday

Posted: Thu Apr 12, 2012 4:10 pm
by govicinity
1.10.3 Hyacinthe
CGCalendar 1.9.4
CGExtensions 1.28.1

I am wondering if there is a way to display only 7 (or 5) days rather than the whole month on CGCalendar? So just for Sunday-Saturday (or for the 5 day option Monday-Friday).

This would be a really useful option, or if somebody has already done something like this let me know how they achieved it. I'm building a website for a Yoga instructor and she doesn't want the whole month as her classes are the same every week.

Re: Want CGCalendar To Show week Only - Sunday-Saturday

Posted: Thu Apr 12, 2012 4:52 pm
by mcDavid
I've made a function for this (actually just changed the month-list), I can send it to you in PM if you want. It's kind of a module hack so I won't post it on the forum.

Re: Want CGCalendar To Show week Only - Sunday-Saturday

Posted: Thu Apr 12, 2012 8:44 pm
by winkelman
Me too, please!

Re: Want CGCalendar To Show week Only - Sunday-Saturday

Posted: Fri Apr 13, 2012 4:29 pm
by govicinity
Right, thanks to mcDavid I now have a list view of the week, this is good, but what I'm now after is effectively the same output as you get with the main calendar, but just for 7 days, Sunday to Saturday...

So from this:
Image

To this:
Image

Anybody got any ideas?

Re: Want CGCalendar To Show week Only - Sunday-Saturday

Posted: Sat Apr 14, 2012 10:29 pm
by mcDavid
I don't think my "hack" is suitable for that, because it's a copy of the list function, not the calendar function.