Hi,

I need your help in enabling different templates for creating node of custom cck types.

I have created 3 custom cck types.

cck_content_type1
cck_content_type2
cck_content_type3

I need to have three different custom templates to create each type of content.

I created three template files with names below and placed them in my custom theme named customTheme, which is based on garland.

node-add_cck_content_type1.tpl.php
node-add_cck_content_type2.tpl.php
node-add_cck_content_type3.tpl.php

I understand that the naming of template is may not be correct.

I am not sure how i can let the system know that these templates should be used for creating content of repective node types.

One thing i would not want to do is create multiple copy of page.tpl.php.
This would require me to change all these files everytime i make simple change to main layout through page.tpl.php

Appreciate your help.

Comments

WorldFallz’s picture

For theming the display of nodes of a particular content type the files should be named "node-{contenttype}.tpl.php". To theme the cck input form for a content type it works a little differently, see Fine-tuning the UI by Theming Forms In Drupal 6.0.

zigma’s picture

Thank you for the pointer.

Could you pl. point me to a transcript of what is explained in the video?

WorldFallz’s picture

Sorry, I don't believe there is one.