Hey all,

Created a custom view with the filter 'Domain Access: Available on current domain' set to True. However, it shows me all results. It's a plainjane view with nothing special going on. Is this known to work, or no? I searched the issues and couldn't really find anything relevant.

Comments

kevinquillen’s picture

Forgot to mention that I have disabled and hidden Send to all Affiliates in the node form.

croryx’s picture

This filter works properly for us.

kevinquillen’s picture

If I set 'Domain Access: Available on current domain' to False, I get the expected result from that. True just shows me all the content.

I wound up removing that and using 'Domain: Domain ID' is Current Domain, and that worked.

agentrickard’s picture

If you disabled and hid 'send to all affiliates' in the form, what values (if any) for 'domain_site' are in your {domain_access} and {node_access} tables?

It is possible that you have accidentally set all content to be visible on all domains, which would explain this behavior.

kevinquillen’s picture

Heres what I have in a form alter:

$form['domain']['domains']['#required'] = false;
$form['domain']['domain_site']['#default_value'] = false;	
$form['domain']['domain_site']['#attributes'] = array("style" => "display: none");

This appeared to work but I could be mistaken.

agentrickard’s picture

It should. I still wonder what is getting saved to the table. You would be safer doing this:

$form['domain']['domain_site']['#type'] = 'value';
$form['domain']['domain_site']['#value'] = FALSE;

That will prevent it from being rendered to the browser.

kevinquillen’s picture

I don't appear to have a domain_access table, but node_access table has

nid 26
gid 4
realm: domain_site

Which is the only page on the other site I am working with currently, which showed up using the original filter.

agentrickard’s picture

You _don't_ have a {domain_access} table?

No wonder nothing works. Without the {domain_access} table, Domain Views won't work.

You may need to uninstall Domain Access and start over, because something is very wrong.

agentrickard’s picture

Status: Active » Closed (fixed)