Node Images Link expanded by default: HOW?

Rosamunda - September 10, 2008 - 13:41
Project:Node Images
Version:6.x-2.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

The "Node Images" link inside each edit node area, is collapsed by default.
So, people have to click on it to expand it and add images.
How could I let that (and only that) link expanded?

Thanks!
Rosamunda

#1

lizblankenship - June 26, 2009 - 04:14
Category:task» feature request

In 6.x-2.1, I was able to accomplish this by changing line 164 of node_images.module file to:
'#collapsed' => FALSE,

It was the second occurrence of #collapsed in the file. It's not recommended to directly modify the module code though, and I'm still learning about how to do it the "right" way.

In any case, to put in my two cents, I think it should be expanded by default. I also don't like the name "Node Images" and think that it would be great if this module made it really easy to rename the title of that section of the form when a user is creating a new node with images attached. Most users have no idea what a node is!

 
 

Drupal is a registered trademark of Dries Buytaert.