Hide "Send to all affiliates" and force domain selection

BarisW - August 14, 2009 - 09:54
Project:Domain Access
Version:6.x-2.0-rc8
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:user interface improvements
Description

Would it be possible to hide the checkbox "Send to all affiliates" and make the domain selection mandatory?
Right now both options are visible. I think this is strange behaviour (why is it possible to select a domain after checking "Send to all affiliates"?) which can be improved.

#1

agentrickard - August 14, 2009 - 16:21

Domain selection is already forced.

You must select a domain even if "send to all affilaites" is checked, as this is the 'root domain' for the node and is used for editing and linking purposes.

You could have a separate permission that would allow the removal of 'send to all affilaites', but I believe the current permissions cover this, see section 3 of the README.

You can do what you want now with a simple hook_form_alter. Just set $form['domain_site'] = array('#type' => 'value', '#value' => FALSE).

I might consider looking at a patch.

#2

nonsie - August 14, 2009 - 20:57

Just my 2 cents - on one of our sites we've approached it the other way around, when "send to all affiliates" is checked a specific domain (in our case default) is checked as well. All it takes is some jquery magic. You could reverse this approach if you wanted "publish to all" checked when a specific domain is checked.

#3

nrackleff - November 4, 2009 - 22:04

Hi, I could use a little clarification too.

We are setting up a site with 3 domains and the users would like us to be able to hide the 'send to all affiliates' checkbox completely, but they would still like to be able to publish content to any and all domains by checking individual boxes only.

Is there a way to do this with the current configuration and permissions settings? If so, could you let me know what settings I need to select to make this happen? I have read section 3 of the readme.txt file and it is still unclear to me.

Thanks for your help,
Nancy

#4

nrackleff - November 4, 2009 - 23:29

I read through the readme.txt again and I think I may have answered my own question. In the domain access config, I need to assign the users to all domains. In permissions, uncheck 'set domain access' and check 'publish to any assigned domain'. That seems to have taken care of it. Thanks, Nancy

#5

agentrickard - November 5, 2009 - 14:40
Status:active» closed

That would do it, yes. Or you could use hook_form_alter() in a custom module.

 
 

Drupal is a registered trademark of Dries Buytaert.