I'm trying to add more buttons to a custom content type form. I create a page--node--add--typename.tpl.php where I modify the form then render it:
$form = node_add('answer');
$form['actions']['cancel'] = array(
'#type' => 'submit',
'#value' => t('Cancel'),
'#access' => TRUE,
'#weight' => 55,
'#submit' => array('cancel_button_form_cancel', 'node_form_submit_build_node'),
'#limit_validation_errors' => array(),
);
print drupal_render($form);
However this only renders the form. Menus and other blocks are not rendered.
THanks.
hook_form_alter
?