I'm using the calendar module. When I choose the calendar-view I see the events from the current month but there is no link for the previous or next month. And I can't see the name of the current month. What can I do? Thanks!!!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

Status: Active » Postponed (maintainer needs more info)

It sounds like you're looking at the calendar attachment display without the navigation display. The default calendar view won't work that way. Maybe you altered it in a way that removed the navigation. I'd have to see an export of your view to tell.

gratchman’s picture

I have the same issue. I have created new view and added a new display type = page. There is no style to choose called Calendar Navigation like there is with the Default calendar view type. The only choice close to it is Calendar which doesn't come with the prev & next links nor does it display the month.

KarenS’s picture

Status: Postponed (maintainer needs more info) » Fixed

You can't add calendar styles to ordinary views, it only work in the default calendar which has all the elements the calendar needs. I can't keep the calendar style from showing up on other views, but it won't work there. None of the other components of the calendar will be available as options on other views.

The way to build a calendar is to start with the default calendar view and adjust it to fit your needs, not by building a new view from scratch. The default view provides the skeleton calendar framework, but each display in the calendar can be set to use any style, so they can be lists or tables or teasers instead of a calendar style if you like.

And that is a completely different issue than the original one which *was* using the calendar view. The calendar navigation is in a separate display from the calendar view. Both show up when you look at the calendar url, but you may only see one or the other in the preview, depending on what display options you select there.

witzel’s picture

Thank you Karen, I just did not realize, that I can not "split" a view. On the calendar-site everything's allright!!

gratchman’s picture

Ya but the problem with the default calendar view is that the exposed filters don't work. I'm all ears on how to get them to work on the default calendar. I get them to work fine in the new view that I insert a page and set the style to calendar so I know I've set up the exposed views ok. I just can't get any exposed views to work on the default calendar.

Also, seems rather pointless to exclude the calendar nav links when creating a view with a calendar in it. I'll just have to code it in myself I guess. I think I've narrowed it down to an edit in the date module to get it to "turn on" the nav links but I'm not quite there yet.

Sverre’s picture

Status: Fixed » Closed (fixed)

I am also experiencing the issue raised by gratchman in #5. As this is unrelated to the original issue I have closed this and created a new one:

http://drupal.org/node/299174

Regards,
Sverre :-)

jmichaelv’s picture

I was having the same issue (if I have it read correctly). Under basic settings>style change it to Calendar Navigation and you should get your navigation on the calendar page as well as links to change between year, month, week and day views.

Hope that's what you're looking for!?

MV

joekewl’s picture

Sorry for post, I figured it out.

jgoodwill01’s picture

How would I get the Calendar Navigation as an optional style? I'm having a lot of trouble getting the navigation to appear on an additional "Page" I added to the default calendar. I need to filter out a content type and make a few extra calendar pages that are filtered but I can't seem to get navigation to appear on any of them. Cloning a working calendar view yeilds a view that doesn't return any results unless I change their styles to just "Calendar" as opposed to "Calendar Navigation".

Currently Using:
Views 6.x-2.6
Date 6.x-2.x-dev
Calendar 6.x-2.2

atuline’s picture

I'm having a similar issue with the lack of navigation bars.

The default Calendar view was configured with basic settings>style change it to Calendar Navigation.

First issue: I cloned that View and at one point, I changed the style to 'Calendar'. From then on, 'Calendar Navigation' was no longer a style option and I had to revert to the original view in order to get the navigation back.

Second issue:When I use a filter of "Organic groups: Groups = mygroupname" on the original Page, everything works OK. When I add a display, and change the filter to "Organic groups: Groups = anothergroupname" that filter breaks the display in that I end up with a nav bar, but no calendar. Removing the display worked, and my original view was fine.

The only way I can get this working is to have a completely separate View for each group and to leave the style as 'Calendar Navigation'. Adding additional 'Displays' broke the view.

Oh, and I was using the following recipe: http://www.drupaltherapy.com/date.

jackread’s picture

hi! I've attached my customized calendar-month.tpl.php

I really wanted to be able to do date navigation from calendars created by my own custom views... so I've added some code to do that. I'm not sure it was the simplest way to do it but it works!

ps. don't forget to rename the extension from .txt to .php

jackread’s picture

FileSize
3.71 KB

UPDATED CODE

I've also added a couple more lines to handle filtering by taxonomy term id

jzornig’s picture

Thanks. This was most helpful.

rc2020’s picture

subscribing

mccrodp’s picture

subscribing

ice5nake’s picture

Title: calendar navigation » Calendar navigation Views style
Version: 6.x-2.0-beta4 » 6.x-2.2
Category: support » feature
Status: Closed (fixed) » Active

I'd like to see "Calendar navigation" as a regular old display style. The fact that you can't create your own View and still use the Calendar navigation seems kludgey.

puya’s picture

subscribing

grendzy’s picture

This came as quite a surprise. Can you comment further on why this limitation exists, and what changes might be needed to address it?

Is there any way to recover a view that was created manually, without the calendar navigation style?

Als’s picture

Issue tags: +workaround

Actually you *can* create your own views with the calendar style.
What Karen explained at #3 is that it is necessary to *build upon* the default Calendar view. Clone it and tweak it adding what you would add to a manually-created calendar.

Also, use the available Page and Block displays. Additional pages and blocks miss the calendar style, too. To create a 2nd/3rd/... page display, create a 2nd/3rd clone of the default view.

With Views 2.11 and Calendar 2.2 this basically works, though the navigator is still missing. If it is absolutely needed, you will add it as a static element in a block.

alberto56’s picture

zilverdistel’s picture

alberto,

May I notice that you're relating this exact issue to itself?

Anyway, subscribing. I definitely think it should be possible to have the views style 'Calendar navigation' available in ordinary views.

alberto56’s picture

@zilverdistel thanks for pointing out my mistake!

What I meant to say was Related issue: #370572: trying to create one more calendar block and can't see the calendar navigation style in views.

Anonymous’s picture

jackread’s picture

Choy - thanks for linking to my site but I already uploaded the fix here (see comment 12).

jackread’s picture

Als - It's not really the "normal" way you would go about creating a view though... its great that it works but I think it would be worth making it work in a way that your average user could expect, without readme or any documentation.

Anonymous’s picture

:) Didn't realize those were the same... Sorry for duplicate.

arlinsandbulte’s picture

Status: Active » Closed (won't fix)

Looks like this issue was figured out.
Yes, making a calendar view from scratch might be possible, but it is a whole lot easier to clone the default view. I don't think there are any plans to change that.

The 7.x-3.x version of calendar might make this a whole lot easier...