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

agentrickard’s picture

What if we made a new permission to 'view inactive domains' -- that might be more flexible.

scedwar’s picture

I 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.

agentrickard’s picture

That 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().

agentrickard’s picture

Status: Active » Closed (fixed)

I 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.

bleen’s picture

Version: 5.x-1.9 » 6.x-2.x-dev
Status: Closed (fixed) » Active

agentrickard & 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

agentrickard’s picture

And 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)?

bleen’s picture

I'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.

agentrickard’s picture

I think you can if the relationship is set correctly.

agentrickard’s picture

Project: Domain » Domain Views
Version: 6.x-2.x-dev »
Component: - Domain Views » Code

Moving to Domain Views for D7.

agentrickard’s picture

Version: » 7.x-1.x-dev
Status: Active » Closed (works as designed)

Closing.