Community & Support

Custom Node Add/Edit Theme - With CCK

Hey Guys,

So I made a custom theme for node type "x"

When I create the node, it looks great when finished.

The issue, is I'd like to seriously customize the theme for the add and edit node page as well (so it matches what the final view is).

Does anyone know where I should start?

Comments

Ok, so after some searches, I

Ok, so after some searches, I can see that "page-node-add-"x".tpl.php" will create the theme for the add page.

The issue I'm having now, is the rest of my theme is gone, i.e. none of page.tpl.php is showing up on the add page?

Ok, so to resolve this I just

Ok, so to resolve this I just copied in the template information from page.tpl.php

my page-node-edit-"x".tpl.php doesn't seem to be changing the template at all however.

Any ideas?

Most likely my reply is 9

Most likely my reply is 9 months too late for bgnm2000, but this might help someone else.

One approach is to gather the necessary fields from $content:

<?php print $content ?>

You do this by inspecting $content with the dsm function:

<?php print dsm($content) ?>

You will need to install the developer module to avail of the dsm function.

Once you know which fields interest you, wrap your custom code in the content.div:

<div class="content">

</div>