Closed (fixed)
Project:
Domain
Version:
7.x-3.x-dev
Component:
- Domain Settings
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2013 at 17:50 UTC
Updated:
15 Apr 2017 at 16:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
peacog commentedHere's the patch.
Comment #2
agentrickardLooks fine. Can we get another approval?
BTW, the reason for this is that Domain is a required field, but hey, flexibility.
Comment #3
peacog commentedIt might be helpful to explain why I needed this patch: in my site some content types (let's call then type A) can belong to one or more domains and other content types (type B) belong to the main domain only. Ideally I would like to be able to show the domain options fieldset for type A nodes only. Type B nodes would always be assigned to the main domain by default, so ideally the domain options fieldset wouldn't be shown at all for those.
Does the module allow that configuration currently? I didn't find a way to do it with the module's existing permissions, so to make life a little easier for the site's content editors, I came up with this very simple patch. I would love to be able to show or hide domain options per content type, but I don't know the module well enough to attempt that level of customisation.
Comment #4
agentrickardRight. That level of control is not currently configurable. You can write custom code to handle it using a form_alter, however.
Comment #6
agentrickardCommitted.
Comment #8
agentrickard