[support] trying to get the attachments div to be permanently open
Neil Coghlan
neil at esl-lounge.com
Sun May 23 21:01:09 UTC 2010
Just had a look and actually, the submit/preview buttons have moved halfway up the page, above the attachments div and above a couple of other cck fields.
the only code I added was that pasted in my previous mail.
----- Original Message -----
From: Neil Coghlan
To: support at drupal.org
Sent: Sunday, May 23, 2010 5:54 PM
Subject: [support] trying to get the attachments div to be permanently open
I was looking through the thread here: http://drupal.org/node/227339
the problem I'm having is that when I add this to my theme's template.php:
// Open the file attachments collapsible block in a full state
function phptemplate_node_form($form) {
$form['attachments']['#collapsed'] = FALSE;
return drupal_render($form);
}
the attachments div is open BUT the main submit and preview buttons disappear. Any reason why that function should be interfering with the node form's submit and preview buttons?
Neil
------------------------------------------------------------------------------
--
[ Drupal support list | http://lists.drupal.org/ ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100523/28cc4cdc/attachment.html
More information about the support
mailing list