I've tried following the advice at http://drupal.org/node/62468#comment-132118 but I just can't get CCK to work. It does all my custom content type nicely, but then when I upload my new node-content-property.tpl.php file to modules/cck/theme nothing changes - it just displays the new content type as it always has before.

Anyone have any ideas where I could be going wrong?

Comments

snelson’s picture

Could be:

1.) If you content type is called 'news' then your template file is called 'node-content-news.tpl.php', correct?
2.) If you are modifying the default bluecurve theme, then the template file goes here '/themes/bluecurve/node-content-news.tpl.php', or, if you're doing a custom theme, here '/themes/yourcustomthemename/node-content-news.tpl.php'

jpmoriarty’s picture

lets check;
1) Content type is called property. I'm using the chameleon theme.
2) My CCK module is installed at /public_html/drupal/modules/cck. I've now restored this to a clean installation.
3) I have a file called node-content-property.tpl.php which I had installed in /public_html/drupal/modules/cck/theme, but I've now deleted that and installed it at /public_html/drupal/themes/chameleon.
4) My node-content-property.tpl.php contains the following:

<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
    <?php if ($picture) {
      print $picture;
    }?>
    <?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
    <span class="submitted"><?php print $submitted?></span>
    <span class="taxonomy"><?php print $terms?></span>
    <div class="content">

      HERE IS WHERE YOUR CONTENT WILL GO

    </div>
    <?php if ($links) { ?><div class="links">&raquo; <?php print $links?></div><?php }; ?>
  </div>
  
  <code><?php print_r($node); ?>


5) Still nothing - it just displays each field heading, and then the value of each field.

karens’s picture

snelson’s picture

Look like chameleon uses a theming engine other than PHPTemplate (pure php, they say?) so the themeing is done differently. Karen's post above seems to explain this.