Skip to main content

Drupal 7 notes: the submit button on the node creation form isn't working!

Posted on: Thursday, 23 June 2011 @ 1:44pm
Blatting about
More specifically

In template.php:

'form', 'template' => 'node--[content-type]-form', ) ); } ?>

If you keep template files in a subdirectory (eg sites//all/themes/[theme-name]/templates or something to that effect) this may help:

'path' => drupal_get_path('theme', '[theme-name]') . '/subfolder',

After you've put all your fields where you want them in your pretty node--type.tpl.php:

At the end put

That renders all those sneaky little hidden fields Drupal uses to process and validate form stuff. Use css to hide the vertical tabs if you want them hidden.

#[formid] .vertical-tabs { display: none; }

No comments yet

Add new comment

The content of this field is kept private and will not be shown publicly.