how to show only months with events in them
bendingcaesar - November 7, 2009 - 17:17
| Project: | Calendar |
| Version: | 6.x-2.2 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi all.
Is there a way to set our calendar to only display the months that have events in them, rather than the full 12 months?
We are creating a film festival schedule, which only runs during June, so we don't want the calendar displaying all the other empty months.
We may have a few other events in other months as well.
Thank you in advance.
Dima

#1
have you tried using custom views?after installing the views-calendar-date etc modules.Try building you own custom view by cloning the one that is provided by default from the calendar module.
#2
I'm afraid I'm very new to this. I could clone the calendar, but would not know how to do the rest of it. Can I just customize the one I have without cloning it first?
Thx
#3
yes it's ok no worries. . . i suggested that in order to have a back up . . . just in case.
#4
Yes, but could you please tell me how to set the calendar to show just the months that have events in them? My client is yelling at me and I can't seem to figure this out.
Thank you in advance.
#5
please see this first. . . http://www.drupaltherapy.com/date
#6
Yes, I have seen this. I used it to configure my calendar in the first place. It's very helpful, but it does not tell me what I need to know now. He mentions something about creating a list of upcoming events, where past events are not shown, but that's not exactly what I need either. Right now, it's November 2009. We have some events scheduled in June 2010. We need the calendar to show just that month with the events in it, not all the months leading up to it. I have tried and experimented with the views mod for many hours and can't see any way to do it. There is nothing in the documentation about it either. I seriously need for someone to tell me how to do this. I would appreciate any help.
Thank you in advance.
#7
Sorry, I should not have assigned this issue to myself. I thought it was for a different purpose.
Does anyone know the answer to this problem?
Thanks,
Dima
#8
#9
I am guessing this feature would involve creating a module and/or theme function.
In other words, it is not trivial, and it is not something provided by the calendar module (and I don't expect the feature would ever be added).
If you are unable to figure out how to do what you want, I have the following suggestions:
1.) Quick and easy way is to create an upcomming events list as mentioned above, but it sounds like you or your end user are rejecting that idea.
2.) Find and hire a development firm to code the functionality you desire/need.
#10
I think there must be a simpler way to do this. But I can't find anything in the documentation.
Take a look at this person's calendar: http://www.spacefoundation.org/education/calendar/2009-12
Notice that in the Month View, it starts in December, not November (present month). That's sort of what I'm talking about. I asked him how he's doing this. Any ideas on your end about it?
Thanks.
Dima
#11
fast sloppy solution . . .
create a view ( after installing date & calendar modules )
create a custom view add the node-types or the node-type you want to show with fields etc
add a custom path-page for each month. . .you have events showing up
pick calendar from the styles !
e.g for December add a page link December . . . for June add a June link under your custom link.
This will work but needs 'manual' editing and not auto . . .
sorry for the delay . . . i'll try to be back
. . .
p.s : check the attachment!!!hope that helps!
#12
forgot to post-tell this!
add a date filter like the image below
#13
bendingcaesar: I don't see anything special about the site you linked to in #10.
The link you provided includes the argument '2009-12' which is why December is shown.
#14
Hey, thank you for the help and the detailed images. I don't know if it's me, or if others have such difficulties too, but I created the June 2010 view just like you illustrated, I viewed it and it still showed me November: http://newmediafilmfestival.com/june
Only now it's even worse, because the month name is missing.
Might be easier to just do a list of upcoming events. Can you tell me how to do that?
I've figured out most of the modules and functions in Drupal that I tackled, but "Views" for some reason is the most painful part.
Is it me, or is "Views" just more complex than it should be?
Thank you.
Dima
#15
Do you know how to create such an argument? That could solve my whole problem
Thanks.
Dima
#16
then sorry but basically i dont know what are you doing wrong . . .
Views for a start is a way of taking and showing data form the 'drupal' database.
lets say i'm building a photography site and i want to show only the photos that belongs to a certain category e.g landscape
so i will build a 'custom' view to do so . . .
i will add the fields i want e.g title image ( thumbnail ) and prob. date published.
Now if i want to make this more flexible i must somehow find a way to provide a mechanism to let drupal know that when i click to the 'x' link some values will be passed to make drupal understands that i want the values with the 'x' criteria ONLY and nothing more.so i build an image category block with views for that.
How do i do that?by using arguments ofcourse .e.g i can build a custom block with the image categories and then make it visible by visiting the blocks admin panel.
but how does drupal knows if i click 'landscape' or 'portrait' or 'street' or anything else from the block that i want only the photos of landscape ??. . . . by arguments for once more.
Now what about if i want to add some extra features to my view.e.g I want to show the images that a 'group' of people uploaded e.g the landscape team.I must somehow combine the images to the group of the people.So this is where relationshionships comes in.lets say that there is only 1 table for the images and only 1 table that of groups how do i combine them?simple i must find something common e.g the uid ( user id -> when i upload an image drupal save into the image table my uid and when i join a group it also saves my uid to group table) so . . . now that i know that the image table holds the user id and the group table holds also the uid i can combine them by making a query as follows . . .
select all the landscape images where group is landscape. . ..
Now as you can understand this can go on forever and build a thousand views by just combing tables with common ids . . .
which by the way is the magic and the greatness of drupal . . .