Drupal's PHPTemplate theming engine uses naming conventions to easily theme nodes. While the standard template used is named node.tpl.php
, other naming conventions are available to target specific subsets of nodes. Here we will be looking at specifically theming content of a particular node type story by modifying it so that the title of the node does not link to its content in its teaser view, thereby directing users to click the Read more link instead.
This recipe uses the myzen theme created earlier in this book as an example theme. As we are going to be working with a node type named story, ensure that it exists via the content type administration page at admin/structure/types
[Home | Administration | Structure | Content types]. Furthermore, as we are targeting particular node types, it will be a good idea to create more than one node type along with sample content for each.