By ALT83 on
Hi,
I'm finding that my users are not entering important information into node submission forms because they don't notice there is a collapsed fieldset. I would therefore like to turn these off for for my various content types. How can I do this without damaging core functionality?
Specifically things I need to stop hiding is the fieldsets for upload.module and also the location.module.
Thanks,
Alex
Comments
Isn't this an option in the
Isn't this an option in the content type edit page?
Or maybe in the group's configuration page.
You could write a module that
You could write a module that implements hook_form_alter().
For example, to open up the "published/promote to front page/etc." fieldset, you could use
$form['options']['#collapsed'] = FALSE;
Lullabot has a page on it... http://www.lullabot.com/articles/modifying-forms-5-and-6
Thanks guys, but surely there
Thanks guys, but surely there must be a simpler way than creating a whole module to do this?
SolarFlare, I think there may be some kind of options if this were a CCK field, but it's not, it's the actual upload.module ("File Attachments") fieldset and also the "Location" fieldset created by location.module
Creating a module to
Creating a module to accomplish a task isn't so bad. However, you might be able to override the fieldset in the theme by implementing phptemplate_fieldset() in template.php.
Never tried it so I don't know if it will work but it seems like it should.
learn drupal
I wanna learn drupal but i know installation what i will do after installation .
pls refer quick guide link in PDF format if any. and how i can develope our personal site in drupal.
and how can build ourt template/themes in drupal.
Pls help me.
Thanks
from webbee.biz
I would also find it helpful
I would also find it helpful to be able to do this, specifically for the Image Attach collapsed group in my case.
Problue Solutions
Use phptemplate_fieldset()
I wanted to do the same thing for the "File attachments" fieldset on my forum post content type. I acheived this by adding the following to my theme's template.php:
If you want to turn of collapsing completely for the fieldset, just set $element['#collapsible'] = false.
Thanks for the reply
Thanks for the reply BassistJimmyJam,
But would there be any way to remove this element from the form altogether?
I wish to hide the file attachments node for a specific node.
Cheers,
Justin
Thanx BassistJimmyJam, works
Thanx BassistJimmyJam, works great !
Tsachi Shlidor (@shlidor)