Similar to the issue #1462950: More Flexible Implementation this adds the ability to have a blacklist/whitelist option for the domains. Unlike the one mentioned in 1462950 this does not change the class that is being used nor does it replace the checkboxes with a textarea.

I believe that the option to select the domains based on the domain_id instead of listing each domain would be more manageable especially from a dev => live environment or changing of a the domain and accounting for domain aliases without having to adjust the context(s).

This patch adds a new domaincontext option to allow the user to select exclude/include and the execute will set the context appropriately.

Comments

apemantus’s picture

Status: Needs review » Reviewed & tested by the community

Patch works for me.

gabriel.achille’s picture

Patch works for me too. (but i didn't compare it with the other approach)

torpy’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.73 KB

This causes undefined index issues for me. Updated patch attached.