0

Why can i override:

page--node--add--mycontenttype.tpl.php

and not:

page--node--edit--mycontenttype.tpl.php

What is actually quite the same form?

1 Answer 1

1

Have you got the code in your template.php file set up correctly?

It should look like this:

function THEMENAME_theme($existing, $type, $theme, $path) {
    return array(
        'FORMNAME' => array(
           'arguments' => array('form' => NULL),
           'template' => 'page--node--add--mycontenttype.tpl.php',
          'render element' => 'form',
          ),

You can find FORMNAME, by viewing the source of the page and looking for the id of the form.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.