I have quite a few views where I use the filter for "Domain Access: Domain" to filter a list of content from my active domains, as some domains are still in development/testing (in a content, rather than technical sense). I would much prefer to have the option to configure my views to filter on "Domain Access: Domain = is Active/inactive"
As an aside, I would love to see the Domain status have three levels: (1) Active (2) Development and (3) Inactive; where state (2) Development is a new state whereby a normal user (anon or authenticated) can navigate to the domain, however the content from that affiliate can be excluded from affiliate views. This is useful just prior to launching a new affiliate where you have users without the Admin Nodes permission who wish to see or use the domain, but where you don't want Joe Public to wander into it (but there is no major problem if they do).
Thanks, Stephen
Comments
Comment #1
agentrickardWhat if we made a new permission to 'view inactive domains' -- that might be more flexible.
Comment #2
scedwar commentedI think that is a much simpler solution, providing that users without that permission did not see nodes from inactive domains listed in views. If you create a view that shows nodes from all domains, this view should not show nodes from the inactive domain unless the user has the permission.
Comment #3
agentrickardThat might be possible, using a special rule. I think this is probably something better left to a custom or contributed module that uses the API, especially hook_domaingrants().
Comment #4
agentrickardI just did a little testing (finally).
The filter you want is listed under Domains: Valid, and works to filter out valid/invalid domains.
The permissions issue us separate.
Comment #5
bleen commentedagentrickard & I talked about this in IRC ... I'm going to attempt to create a patch for domain source that will let views be filtered based on in the domain source is an acitve/inactive domain
Comment #6
agentrickardAnd I would think that the filter would also have to respect the new 'view inactive domains' permission (or at least have a setting for that)?
Comment #7
bleen commentedI've been playing with this for a good part of the day and I don't believe you can create a filter that references two tables. If you can than this task is - unfortunately - over my head.
Comment #8
agentrickardI think you can if the relationship is set correctly.
Comment #9
agentrickardMoving to Domain Views for D7.
Comment #10
agentrickardClosing.