There used to be an 'even_empty' option in the style plugin that would call the plugin theme even when there were no results. I used that to display empty calendars. I'm working on the Calendar upgrade to Views 2 and can't find any way to set that any more. When there are no results, my theme never gets triggered.

What is the best way to do this in Views 2?

CommentFileSizeAuthor
#2 theme.inc_.patch760 bytesKarenS
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

This may have gotten lost. It should not be too hard to restore.

KarenS’s picture

Status: Active » Needs review
FileSize
760 bytes

How about this? It seems to work.

merlinofchaos’s picture

Looks good; I'll likely commit it later today or tomorrow (I've got a cold which has been causing a massive sinus headache since yesterday so I'm unsure if I'll do anything useful today or if I'll just veg & play games again today) -- but one note. I'm using spaces in the definition strings, so it'll be 'even empty' rather than 'even_empty'. Otherwise this looks just fine.

I love it when patches like this are that easy.

KarenS’s picture

You should definitely take the day off. And I also love it when patches are this easy :)

merlinofchaos’s picture

Status: Needs review » Fixed

Committed! As I suggested, it is 'even empty' not 'even_empty'.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.