Download & Extend

Access content from other subdomains, but viewed through that subdomain

Project:Domain Access
Version:7.x-3.3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I've searched through the massive amount of information on DA, so if this is a duplicate, I apologize and please forward me to the right info.

On each of my subdomains, I want to create two sets of views:
#1. views that display only content from the current domain
#2. views that show content from all domains.

I've figured out how to do this with Domain_views, but am struggling with the permissions- #2 is acting as #1.

How do I allow users to see content from other domains? And how can I make a views link to that content take them to that other domain?

Thanks for your time.

Comments

#1

You can only accomplish #2 under three conditions:

1. The content is marked "Send to all affiliates"; or
2. The view is a page marked as a Special Page Request (which disables Domain Access rules); or
3. The view is set to ignore node access control -- this is an advanced Views configuration.

Option 3 can create security issues if you are using other node access modules.

To make the content link to the appropriate domain, use Domain Source, which lets you specify a canonical URL for each node. If you don't use Domain Source, the canonical URL is calculated for you.

#2

I have tried a few different settings....would you mind sharing what are the specific settings in Views, that need to be used to achieve option #3 in your list ?

Thank you

#3

Hi,
I had the same issue, but the solutions above were not good for me, because I needed a view in the footer to display teasers and links to my 4 domains front pages.

Solution 1 : it made my 4 home pages available on all domains, instead of each one on it's domain, that I didn't want
Solution 2 : my view is a block that is displayed in every page, but I don't want to disable access domain rules everywhere
Solution 3 : didn't tried because of potential security issues.

Searching through the forums, I found another solution :

The only way that this filter works as you describe is to disable SQL rewrites for the View.

This option is available in your view settings, in advanced options > Query settings

I don't know what impact it may have on other filters, modules, or other cases, but for me, it worked like a charm !

Now, my view displays nodes regardless the domain they are assigned to, witch is what I needed.

I hope it can help someone else ;)