I've installed the calendar module on my view to display a monthly list of events. After installing and browsing to the current calendar month, the display looked great. But, after browsing to an empty month, one with no event nodes displayed in the view, the display simply listed all of the text that would have normally been output in the calendar table (i.e "Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 ... 31") without the actual table.

Upon further investigation, it seems that upon finding an empty view, the views module simply outputs the contents of the view into a variable that strips out all HTML. I've tried adding the "Empty Text" element to the view, but this simply appends the empty text string to the beginning of the output.

CommentFileSizeAuthor
#2 calendar.export2.71 KBbmaleszyk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

Displaying a blank calendar when there are no results is one of the things I specifically designed into this. I can't reproduce your problem, though. Can you export your View and paste it here so I can see if there is something unusual in your setup that is causing this?

bmaleszyk’s picture

FileSize
2.71 KB

Hey Karen,

I've attached an export of the view. You can see the problem on the actual live site (I haven't announced the calendar link as of yet).

To see a calendar with nodes, view January 2007: http://www.goodlifebar.com/calendar/2007/1
Viewing a month with no events illustrates the issue: http://www.goodlifebar.com/calendar/2007/8

Bryan

bmaleszyk’s picture

Update on my issue:

So, I've played around with the view, and got some interesting results. Perhaps this is a result of lack of documentation, but here is the explanation.

Originally, the calendar view had two fields added: The Title of the Node, and the Event Start Time. When I changed this to "Calendar Start Time," and selected "Event Start Time" as the event field to use, the empty calendars displayed as expected. This was great, until I looked at a calendar that should have had events, such as January 2007. It turns out that NO events were listed in the calendar after this.

Help please.

bmaleszyk’s picture

Priority: Normal » Minor

All,

I figured out the issue with the calendar not displaying properly. The issue was that I had several Import Formats defined, and the default format was "Filtered HTML." After removing all unnecessary formats, things went smoothly.

I did find one minor issue: Attempting to change the "Empty" input format to something that would be acceptable -- i.e. "Full HTML" -- did not work as expected.

KarenS’s picture

Status: Active » Fixed

I can't replicate this in the latest dev version and there have been a lot of changes since it was reported. Reopen if you still see it with the current code.

Anonymous’s picture

Status: Fixed » Closed (fixed)