My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1314: Display arbitrary non-consecutive days
6 people starred this issue and may be notified of changes. Back to list
Status:  ExportedToGithub
Owner:  ----
Closed:  Aug 2015


Sign in to add a comment
 
Reported by paul.jam...@gmail.com, Feb 23, 2012
I have an upcoming event on June 7,8,9 with various workshops throughout the day and I would like to show only those 3 days to get the most real estate.

In Google Calendar I can do this with Custom view.  Is there something similar in your program? 
Feb 24, 2012
#1 hout....@gmail.com
I have a similar problem. I am trying to have custom weekends for different users. For example, the weekend might be Friday and Saturday instead of Saturday and Sunday. If there was only 3 days in the week view, I would guess the other days would be considered the "weekend". 

Ultimately, I think it is a matter of being able to specify a custom week. So the user could choose Sun, Mon, Tue, Thu, Fri for their work week. Thanks!
Mar 5, 2012
#2 hout....@gmail.com
I've written some modifications to the fullcalendar javascript files that would allow this to work. I can't seem to figure out how to upload it as a zip file here (something about issue attachment storage quota exceeded) but I can provide the file upon request. I'd very much like to work with you, Adam, to integrate this into the main branch somehow so I would not need to maintain a separate branch.

Changes were made to the following:
* updatecells()
* skipweekend()
* AgendaWeekView
* compileslotsegs()
* colDate()
* AgendaView local variables
* New option customWeek for FullCalendar initialization

The new option customWeek is used to define what days are in the week. Whichever days are not listed in the array are designated as the weekend. All of the changes made are applied only to the agendaWeek view and all other views should work how they worked before. The agendaWeek view now has the 7-day mode and custom mode instead of the 7-day mode and 5-day mode.

This has been tested both in left-to-right and right-to-left viewing modes.


Dec 13, 2012
#3 k.biern...@gmail.com
Hi, thank you for the modification. I think it will save me a lot of coding. It would be great if it was included in main FullCalendar distribution.
Mar 8, 2013
#4 he...@benpalmer.info
Thanks for the modification, this is exactly what i need
Mar 14, 2013
#5 floriandegenhardt85
Hy, hout....@gmail.com

can you send me your modified code for costumWeek, please?

thx a lot.
Mar 16, 2013
#6 k1cke...@gmail.com
Hello, could pelasse send e Ur code aswell? I would apreciaste Very much!!
Mar 16, 2013
#7 k1cke...@gmail.com
I would love if you could help me Out with this :/ thanks a lot!!!
Mar 20, 2013
#8 ruttenbe...@gmail.com
hout....@gmail.com,

Can I have the modified code as well?  My team really needs this functionality from FullCalendar.
Apr 4, 2013
#9 sivn...@gmail.com
can you send it to me too? Thanks a lot! 
Apr 9, 2013
#10 k1cke...@gmail.com
I sent it to you both as he had sent it to me :) Thanks
Apr 11, 2013
#11 gautier....@gmail.com
Hey, can someone send it to me as well please ?
Cheeeeers !
Apr 12, 2013
#12 sivn...@gmail.com
ok, i  sent it to you too :)
Apr 12, 2013
#13 thangara...@gmail.com
It would be great if you share the code with me as well. :)
Apr 12, 2013
#14 sivn...@gmail.com
done :)
Apr 15, 2013
#15 cfuxi...@gmail.com
Please kindly send me too. Thanks!
Apr 18, 2013
#17 hout....@gmail.com
Was away for a bit. I need to update the latest version and test. Have other things on my backlog so it may take awhile. I have it working on an older (1.5.x) build if that is sufficient for now.
Apr 24, 2013
#18 jouann...@gmail.com
Hi, 

I need this features so if you can send me the source code before it's fully tested and added in the master.

It's great for me.

Thanks a lot.


Jun 13, 2013
#20 Augustin...@gmail.com
Indeed, this should be a default option !

I did a short but very hacky version of it :

JS:

  $('#calendar').fullCalendar({
    defaultView: 'agendaWeek',
    firstDay: 3 // The day of the week the event starts
  });

CSS:

.fc-sun, .fc-mon, .fc-tue { /* The days that are after the event */
  display: none;
}

It works like this, whereas it doesn't if you display:none days before the beginning.
Jun 17, 2013
#21 lie.h...@gmail.com
It would help really a lot if you could make the agendaView also available from outside.
I have implemented a custom view(only 4 days) but I had to enhance the fc as following:
(Version 1.6.1 @Line 2931)
fcViews.agendaView = AgendaView
function AgendaView(element, calendar, viewName) {

Aug 1, 2013
#22 l2g95...@gmail.com
how do i get access to this code ?
Aug 13, 2013
Project Member #23 adamrs...@gmail.com
(No comment was entered for this change.)
Summary: Display arbitrary non-consecutive days (was: Display only 3 days in week view)
Status: Discussing
Labels: -Type-Enhancement Type-Feature
Aug 25, 2013
#24 thangara...@gmail.com
Custom week support:

The changes are done in Fullcalendar 1.5.3. Can any please apply the changes in latest version (1.6.3). So that it would be helpful for us.
Aug 25, 2013
#25 hout....@gmail.com
Can this be done with the hiddenDays feature that is was implemented in 1.6.2? I think it provides the same functionality.
Jul 13, 2014
#26 michal.h...@gmail.com
hout....@gmail.com

Could you please send me it as well?
Thank you

michal.humaj@gmail.com
Jul 14, 2014
#27 hout....@gmail.com
This can be done with the hiddenDays feature that was implemented in 1.6.2.
Apr 24, 2015
#28 evamaria...@gmail.com
Hi..can any mail me the custom view code also for 1.6.2?
Aug 21, 2015
Project Member #29 adamrs...@gmail.com
Discussion for this issue has moved to the following URL:
https://github.com/fullcalendar/fullcalendar/issues/1581

This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event.

Happy coding,
Adam
Status: ExportedToGithub
Sign in to add a comment

Powered by Google Project Hosting