Missing Delete Functionality

Events happening in the community are now at Drupal community events on www.drupal.org.
jrearick's picture

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...

cattlecall's picture

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

Central Iowa Drupal Users Group

Group categories

Category

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: