How to make fieldset collapsed at all times by default

aharown07 - October 26, 2009 - 05:42
Project:Path
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Had the path fieldset collapsed via a hack to pathauto, but recent changes in pathauto module resulted in that not working anymore... because I guess the fieldset behavior is now coming from Path.
So... I'm wondering how I might go about making the fields set be always closed except when manually clicked open.

#1

stevecowie - October 26, 2009 - 15:26

I tried a similar hack (I think). As I understand it, the behaviour of the fieldset is inherited from the path module in core, which is collapsed when empty but if pathauto generates a path then it is expanded. This could be fairly easily overriden by writing a form_alter function in a custom module for your site. On the other hand, the logic of expanding the fieldset so an editor can see what's been done seems sensible.

 
 

Drupal is a registered trademark of Dries Buytaert.