Previous / next links not visible on block view
| Project: | Calendar |
| Version: | 6.x-2.2 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Hi,
I intend to use only the block view of Calendar, both in the end of custom event nodes and on a separate event front page. Both of these use cases include additional custom PHP content along with the calendar block.
However, the block view only shows the calendar for the current month and no navigation links on top of it. On the other hand, page view looks just like it should, including those links. I've triple checked the differences between page and block view - there aren't any!
When i preview the different views, default and block have only the calendar without the date browser. Page view has both. Date browser view is only the browser, without the calendar (and it's also the only one with the possibility to choose "Style: Date browser style").
So... How do I either get the date browser to a separate block that works in combination with the calendar block, or of course rather get the date browser included in the normal calendar block? Couldn't find anything about this by googling and forum-checking for a couple of hours. Maybe I've just missed something?
Thanks in advance for any guidance!

#1
You should not use the "Block view" but rather the "Calendar block"
Try previewing "Calendar block"
See attached screenshot.
#2
Thanks for your help, at least I got to the right direction by noting that there indeed was a separate Calendar view, had been using only the date_browser view without noticing the other one.
However, I ran into similar problems in the actual Calendar block view, too. This time the date browser is visible, but the calendar is small and doesn't have any space for titles or events, they just show up as underlined dates. I'm sure this is some default behavior (calendar-mini?), but how can I change it?
All I want is a calendar month view in a block, with enough space for titles and the date browser on top. Some of the default displays are exactly like I want them (at least Page display in the view date_browser), but then again, I can't get it to be a block. I'm familiar with tpl.php files and I guess I'd have to copy and maybe modify some of the file(s) from modules/calendar/theme to my own custom theme folder, but which ones and with what names?
Finally, I'll give you one example of the numerous template tricks which I tried with no success:
- I saw that date_browser Page view has calendar-month.tpl.php as its Style output, whereas my Calendar block display has calendar-main.tpl.php. Figured out this would be the change I need to do.
- Copied the contents of calendar-month.tpl.php to my theme folder, by the filename calendar-main--calendar.tpl.php.
- This file now overrided calendar-main.tpl.php like it should - but my calendar is still small, and it even lost the date browser even though that template file has nothing to do with it!
It's probably very simple what I try to do, please let me know what's wrong and how the logic works for this module since everything seems so random. Extremely grateful for anyone who can help me out of this mess.
#3
^ I am also running into the same problem and request. Is there any sort of fix to have the block Calendar look just like the page Calendar?
#4
subscribe