I want my /browse page to show a different view depending on which domain the user is on. I'm not sure if I'm doing it the best way possible, but I just created 3 different "page" displays, all with the same path ("/browse"), and set the domain access rules so each one is only available on one of my 3 domains. This works fine for anonymous users and even logged in users, but not for the administrator, which is incredibly annoying as that's who'll be logged in during development/testing!

I thought this might be down the the "Bypass views access control" permission, but I unchecked that for the Administrator role and it's still not working! On all 3 domains, I'm just getting the first page display that I setup (which happens to be for the default domain, which is probably relevant).

Any thoughts on how to get around this?

Comments

agentrickard’s picture

Category: bug » support
Status: Active » Closed (works as designed)

No. I suspect that's a limitation in Views. And if you are testing as user 1, that permission cannot be bypassed.

The solution is not to test as user 1, but to create a different administrator account.

Anonymous’s picture

Thanks a lot for the advice. I created a new Administrator account, and all my domain-specific views started working again!

Note: I still had to disable to "Bypass views access control" permission for the Administrator role.

lquessenberry’s picture

Issue summary: View changes

I seem to be suffering from something similar to this. My case is that if I have a view with two page displays and I have the same path for each display, there is no way to tell one display to use one domain and the other display to use the other. If I set one of the displays to domain : domains and set a domain to use for the one display by selecting Override This Page Only, it goes ahead and changes it on the other page display anyway and doesn't mind the rules for setting it only on that display.

asak’s picture

I seem to get the same problem as described by @lquessenberry - But this happens even after changing the path to different paths for each page.
Changing the domain: domains setting for one page changes the setting for the other page as well.