Posted by jrearick on July 27, 2010 at 5:52pm
I found out I'm not getting delete because I removed $content from the node-contenttype.tpl.php file. I removed $content because I wanted to customize what fields showed and where/how the fields displayed on the page. I pull the values for display directly from the node object. When I add $content back in I get the delete button, but I also get all the unformatted fields dumped at the end of the page when just viewing it. Is there supposed to be a better way to handle what gets thrown in $content?

Comments
A few options...
Not sure about all the details (purpose of the form/page - assuming you've used CCK to create the fields, what the delete button - if it's a button - is doing, how much customization you're making for each form element, etc) , but there are a few ways I can think of to re-arrange your form elements:
1) Leave $content in your tpl.php, and re-arrange/alter form elements via the content type's "Display Fields" tab.
2) Consider using Views to create the form. By re-writing the form's output in Views, you can achieve a high level of customization.
3) Haven't used it but maybe this module may be of some help: http://drupal.org/project/node_form_rearrange
4) Leave $content in your tpl.php, turn on theme developer (http://drupal.org/project/devel_themer) and find the code for displaying the delete button.
-tom