Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#2 | theme.inc_.patch | 760 bytes | KarenS |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThis may have gotten lost. It should not be too hard to restore.
Comment #2
KarenS CreditAttribution: KarenS commentedHow about this? It seems to work.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedLooks 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.
Comment #4
KarenS CreditAttribution: KarenS commentedYou should definitely take the day off. And I also love it when patches are this easy :)
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted! As I suggested, it is 'even empty' not 'even_empty'.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.