Custom Node Template 6.x-1.5
File ID: 103261
Custom Node Template 6.x-1.5 Description
Description: Custom Node Template allows one to specify different node templates to be used on a node by node basis.
While there are many options for customizing the display of pages, fewer options exist for customizing the display of nodes. There are many instances in which customizing the display of specific nodes might be useful, and this module provides a simple and efficient way to achieve this.
Using This Module vs. Other Solutions
If you are looking for a way to customize the display of all nodes within a content type this module would probably not be useful. While you can specify a node template to be used by default for a content type using this module, it only applies to nodes you create in the future. There are better solutions for customizing the display of content types - probably the best way is to just do this through your theme. You may also find some other helper modules to be useful. One of the main reasons for using this module would be to customize or override the display of specific nodes differently from the default display of those nodes.
Please see the Custom Node Template Handbook page for additional information and use cases to help you decide if you should use this module.
How do I Use This Module?
For users with appropriate permissions, a list of all node templates available in a theme are presented when creating or editing a node. Any node template can be selected to be used to display a particular node. Specific node templates can also be assigned to content types as a default. If a node template is not selected for a content type and specific node, then appropriate node template will be used by a theme as it normally would (per existing node template suggestions).
Why Use This Module?
In general, this module would most likely be useful for overriding or customizing the display of node on a node-by-node basis or to provide such options to those who don't have access or the ability to customize a theme. It can still be useful for advanced users and developers as well when it is not convenient, feasible, or efficient to customize a theme to achieve the same functionality.
How do I Add Node Templates?
To add a custom node template, simply create an additional node.tpl file and add it to your theme. The format for naming the file should be node-XXXXXX.tpl where XXXXXX is a custom name that you specify. Additional tips and suggestions for naming node.tpl files can be found in the Help module.
Install as usual, see http://drupal.org/node/70151 for further information. This module also includes full uninstall functionality. However, it is still a recommend best practice to backup your Drupal database first.
I try to devote as much as time as possible to community contributions, module maintenance, and additional development. But I also work independently to earn a living. If this module has helped meet your needs or you would like to see additional development, please consider making a small donation. Thank you!
Much of the code for this module is based on the excellent work in the Node Page Template module which provides similar functionality for customizing page templates, and it includes a number of code enhancements.
This project is sponsored/maintained by WebNewCastle which provides various Drupal services including custom theme development, training, consulting, and site development for projects ranging from simple business sites, to eCommerce, to online community, and more.
Related: Module, Display, Theme, Template, customizing, Nodes, Content, Customize, Development, additional, Templates, specific, default, Custom, Node
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
The Custom Field Template plugin adds the default custom fields on the Write Post/Page. The template format is almost same as the one of the rc:custom_field_gui plugin. The difference is following.
* You can set any number of the custom field templates and switch the templates when you write/edit the post/page.
* This plugin does not use the ini file for the template but set it in the option page of the plugin.
Provides a drop-down to select different templates for posts from the post edit screen. The templates are defined similarly to page templates, and will replace single.php for the specified post. This plugin will NOT switch the templates for the...
The function of nodetemplating is very useful for content editors. This module uses the structure and data of a node as a template, it can also define a part of book nodes as a template as well.
After installation, it brings the...
The module starts by removing the required Description field. Then it automatically fills the field behind the scenes by taking a portion of the full description field in your cck/custom node.
Unpack in your...
Ubercart Limited Time Offer adds functionality to Ubercart to make a product available for a limited time in a variety of styles - time of expiration, time remaining, active countdown, and etc.
This module may be useful for those who...
Add tabs for custom content blocks to the edit page with enhanced theme-specific configuration and smart template switching. Makes use of custom fields, page templates and a theme-specific XML file. This plugin is based on Page.ly MultiEdit. Visit...
This plugin lets you save and reuse your uploaded header images.
It will save your images to the 'images/headers' folder within your template folder. In the Custom Header menu the images will then show up as defaults, together with your...
Cf Shopping Cart is simple shopping cart plugin. This plugin work together such as Custom Field and more plugins. Thereby website can have flexible design.
* Dutch (nl_NL) - Rene
* Spanish (es_ES) - Jorge...
WP Lasts Posts is a simple plugin that provides a template tag wp_last_posts() that displays the title, excerpt and meta data (date, categories, tags, number of posts) from the last few posts from your blog. It takes one argument, which is the...
The clone module allows users to make a copy of an existing item of site content (a node) and then edit that copy. The authorship is set to the current user, the menu and url aliases are reset, and the words "Clone of" are inserted into...
|User Review for Custom Node Template