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!
Comment | File | Size | Author |
---|---|---|---|
#1 | Calendar View.jpg | 86.3 KB | arlinsandbulte |
Comments
Comment #1
arlinsandbulte CreditAttribution: arlinsandbulte commentedYou should not use the "Block view" but rather the "Calendar block"
Try previewing "Calendar block"
See attached screenshot.
Comment #2
mnordstrom CreditAttribution: mnordstrom commentedThanks 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.
Comment #3
ejohnson CreditAttribution: ejohnson commented^ 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?
Comment #4
Weka CreditAttribution: Weka commentedsubscribe
Comment #5
arlinsandbulte CreditAttribution: arlinsandbulte commentedBeen quite a while... No one else has posted this issue.
Re-open if you still need assistance.
Comment #7
mimpse CreditAttribution: mimpse commentedI'm having problems with this too - have tried all manner of overriding theme functions, templates and messing with the view object itself, but can't find a straightforward way of producing a calendar block with a display that mimics the page month view (ie prev/next month navigation over a full month calendar with panes for days showing node titles).
It seems that the Block View is what's attached to the Calendar Block, and in preview it displays the month view I'm after, but without the nav. However, the Calendar Block itself just shows individual days as date numbers linked to their calendar page entry, with days containing content underlined. I can't find why a reason why this should be, nor a route to override it.
Any help greatly appreciated.
Comment #8
mimpse CreditAttribution: mimpse commentedComment #9
gramon CreditAttribution: gramon commentedsubscribe
Comment #10
dstotijn CreditAttribution: dstotijn commentedTo get the date browser (bar with 'prev' and 'next' arrows) on top of a block display:
Add a 'Date browser' display and on the 'Attachment settings' select the desired block to add it to. Under 'Position' verify that 'Before' is selected.
Comment #11
Milkrow CreditAttribution: Milkrow commentedI added a Date Browser to the Calendar Page because my previous / next links were not showing on Calendar Page, but I don't see anything above or below the Calendar Page. I can see that the links are loading, but they are empty, thus, no links. I can't determine what is causing this. Any ideas?
Comment #12
Neslee Canil PintoThe D6 branch is no longer supported so we're closing this issue. If you think this issue still exists in D7 you can open a new one.