I'm looking for a way to filter images on pages, based on specified criteria, such as url.
This is helpful, when you have a banner with images for sections/categories. When you come to the section/category, you want this image to be static or have a limited amount of images rotating.

For example, say we have 5 images created as 5 nodes of type banner. Those images are image fields attached to banner. Now, there is a multi-value text field with urls (aliases) of pages where this image should be displayed.

banner1 <- [path1/page1]
banner2 <- []
banner3 <- [path1/page1, path1/page3]
banner4 <- [path2/page1, path2/page2]
banner5 <- []

When visiting some url:
- If url corresponds to only one text field for only one banner node - static (still) images has to be displayed.

- If url corresponds to one text field for several banner nodes - slideshow shows only images from those banner nodes.

- If url does not correspond to text field of any banner nodes - all of images have to be displayed.

example.com/path1/page1 <- banner1, banner3
example.com/path1/page2 <- all banners
example.com/path1/page3 <- banner3
example.com/path2/page1 <- banner4
example.com/path2/page2 <- banner4
example.com/path2/page3 <- all banners

Is there are solution using views?
If not, where to start digging in views_slideshow?

Comments

alex.skrypnyk’s picture

bump...

NickDickinsonWilde’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

That's a basic views filter (well not *basic* but views rather than views slideshow).
Re-open i still an issue