Multisite Filter view by Base URL

by Ian Menzies   Last Updated January 09, 2018 15:07 PM

Currently I have a view setup to display images in a carousel.

The drupal site im working with is a multisite.

I was wondering if it was possible to filter in or out images by using the base url of the site(Some sites to show different images but for the most part us the same images).

My questions are: 1) Is this possible? 2) If so, how would I get the base url in the view contextual filter 3) How would i setup the contextual filter to display the generic images alongside the images I wish to display for that specific site.

I've currently setup a content type with a new field called url and tried displaying images when the url is either empty or contains a specific url.

However this doesn't work as I can't seem to use tokens in the filter section...

Any help would be greatly appreciated as I've been stuck on this for quite some time.


Related Questions

How to implement a dynamic filter with views in D7?

Updated April 15, 2015 20:03 PM

use two formatter for single field in view

Updated February 28, 2017 09:07 AM