views:

44

answers:

2

Lets say I create a content type, called "product". Now, if I wish to change the way product nodes are displayed, i would edit "node-product.tpl.php". Easy enough. But what if I want to edit the INPUT page? I.e. The page where you CREATE the node? Is there any easy way to do this?

+2  A: 

This page has a good overview of working with input forms for CCK: http://drupal.org/node/101092

Dan U.
+2  A: 

to be a little bit polemic, the answer is no, there isn't an "easy" way :]

you have some possibilities:

  1. the classic: use hook_form_alter to alter single fields modifying the $form array. (you can prepend and append html too with the #markup directive)

  2. use $form['#theme'] = 'my_theme_function' and create a my_theme_function($form) that renders the complete form itself ie:

    function my_theme_function($form) {

    // some calls to drupal_render( $form['my_field'] );

    return drupal_render($form); }

  3. use something like form_panel module..

(there is a lot of literature about this topic in drupal forums)

gpilotino