Can you add an option to reference all pages? I tried looking at the code to see if I could add this myself, but I wasn't sure where it should go...

My use case is a slideshow. I want to create a default slideshow node that displays on all pages, then I can create slideshows for specific pages. That way, if a particular page doesn't have a specific slideshow displayed on it, it'll display the default one assigned to 'all pages' (prevents the theme from messing up when there's no banner image).

Thanks.

Comments

itangalo’s picture

Status: Active » Fixed

I guess you could do this by setting the menu item reference to empty, and then using an OR filter setting in Views – displaying any slideshow images that either match the currently viewed page OR have empty reference field.

(It wouldn't make it possible to have default slideshow content as fallback, but I don't see how adding an 'all pages' option would do that either.)

If you want a default fallback, and not include all the default images in all slideshows, I would recommend using the "empty behaviour" setting. If there are no slideshow images for the viewed page, then the empty behaviour could load another view (showing all the images with empty menu item reference).

Setting this as fixed for now – please reopen if I'm misinterpreting the situation (or the suggested solution doesn't work).

Anonymous’s picture

Thanks, I hadn't thought about using Views' 'No Results Behaviour' setting... That did the trick.

itangalo’s picture

Status: Fixed » Closed (fixed)

Sweet! Thanks for taking time to report positive result.