When not displayed in a vertical tab, the domain form options fieldset is open by default. I've made a small patch that adds an option to show the fieldset collapsed by default on the node edit form. Patch to follow below.

Comments

peacog’s picture

Here's the patch.

agentrickard’s picture

Looks fine. Can we get another approval?

BTW, the reason for this is that Domain is a required field, but hey, flexibility.

peacog’s picture

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

agentrickard’s picture

Right. That level of control is not currently configurable. You can write custom code to handle it using a form_alter, however.

  • agentrickard committed 5eb8d44 on 7.x-3.x
    Issue #1975026 by Peacog: Collapse the domain form options fieldset
    
agentrickard’s picture

Issue summary: View changes
Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

agentrickard’s picture