Customizing the appearance of a specific node
In a similar vein to an earlier recipe, we will be looking at using the Drupal theme system's naming scheme to customize specific pieces of content. While the previous recipe targeted nodes of a particular node type, here we are going to target a single node based on its node ID. However, Drupal does not support this particular naming convention out of the box. So we have to do the next best thing—add it ourselves.
The customization we will be performing on the node in question is that it should only display its content and links to authenticated users. In other words, anonymous users will only be able to see its title.
Getting ready
There are two places where we can add our new template suggestion. We can do it either in our theme or in a custom module similar to the one we created in Chapter 2, Beyond the Basics. We will be using the myzen theme created earlier in the book as the example theme in this recipe. The significant difference between...