Theme the node-create and node-edit template

Posted by Toxid on Stack Overflow See other posts from Stack Overflow or by Toxid
Published on 2010-05-06T22:51:10Z Indexed on 2010/05/06 22:58 UTC
Read the original article Hit count: 151

Filed under:
|
|
|
|

I'm using drupal 6. I've managed to make a .tpl file for one content type, that is for images in my image gallery. I did that by adding this code in template.php:

function artbasic_theme($existing, $type, $theme, $path) {
  return array(
    'galleryimage_node_form' => array(
        'arguments' => array('form' => NULL),
        'template' => 'galleryimage_node_form'
    )
  );
}

And then I created galleryimage_node_form.tpl.php, and was good to go. Now it happens so that I want to have other template files for the forms of other content types, for example link_contrib_node_form.tpl.php. I've tried a couple of ways to change this function to include more content types, but I can't figure it out. Can anyone help?

© Stack Overflow or respective owner

Related posts about drupal

Related posts about template