There are six main templates that are present in Drupal themes by default. These are Home, Page, Blog, Post, 404 and Default templates.
More templates can be added to the theme in the following way:

  1. Open the Templates list and select Add template to add a new custom template or Duplicate template option to duplicate an existing template:

    d-add-template.png

  2. Specify the template type. For example, let's add a new Post Template:

    d-add-post-template.png

  3. Enter the template title and save changes by clicking "OK".

  4. Now there are two Post Templates in the theme, the newly added template is available in the Templates list. Select and design it in the way you want.
  5. Save changes to the theme and go to Drupal administration.
  6. Navigate Appearance >> [choose the theme] >> Settings >> Template Settings and assign the new template to pages that should use it. In our example the "Post 2" template can be set for pages that use Post Template:
    template-settings-drupal.png

Now all articles use the new "Post 2" template.

Besides the known Template types, there are also additional ones available for adding: Forum template and Custom template. Additional templates of these types can be added in a way shown above and chosen in Template Settings in Drupal.

The Forum template can be used for content of the Forum type in Drupal.

Custom Templates

The Custom template allows using different design for specific pages. Here are some simple steps to use it.

How to assign Custom Template by content type:

  1. Open the Templates list and select Add template.
  2. Select the Custom Template type from the list.
    d-custom-template.png
  3. Enter the template title:
    d-custom-template-2.png
  4. Enter the template file name:
    drupal-custom-template.png

    To assign Custom Template to the specific content type please use machine_name of the content type, e.g. "my_article":
    page-node-my_article.tpl.php
    In the same way you can specify taxonomy term, for example:
    page-node-taxonomy-term-4.tpl.php
    Note: The filename should start with "page-" prefix and this prefix should not repeat in the filename.
  5. Click "OK".

Now the newly added Custom template is available in the Templates list. Select and design it in the way you want.

custom-template-in-template-list.png

How to assign Custom Template to the specific nodes by nodeID:

  1. Add new Template of Custom Template type.
  2. Go to Drupal administration.
  3. Navigate Appearance >> [choose the theme] >> Settings >> Template Settings. If you have several Custom Templates, select the template to be used for a specific page. For example, "Custom Template 2".
  4. Specify the relative URL address to the page that should use the Custom Template. For example, "node/12" and save the changes.
    assigning-custom-template-to-a-page.png
  5. Save changes.

See also:

Templates
How To Create And Use Custom Templates

There are six main templates that are present in Drupal themes by default. These are Home, Page, Blog, Post, 404 and Default templates. More templates can be added to the theme in the following way: 1. Open the Templates list and select **Add template** to add a new custom template or **Duplicate template** option to duplicate an existing template: !d-add-template.png! 2. Specify the template type. For example, let's add a new **Post Template**: !d-add-post-template.png! 3. Enter the template title and save changes by clicking "OK". 4. Now there are two Post Templates in the theme, the newly added template is available in the Templates list. Select and design it in the way you want. 5. Save changes to the theme and go to **Drupal administration**. 6. Navigate **Appearance** >> **[choose the theme]** >> **Settings** >> **Template Settings** and assign the new template to pages that should use it. In our example the "Post 2" template can be set for pages that use Post Template: !template-settings-drupal.png! Now all articles use the new "Post 2" template. Besides the known Template types, there are also additional ones available for adding: Forum template and Custom template. Additional templates of these types can be added in a way shown above and chosen in Template Settings in Drupal. The **Forum template** can be used for content of the Forum type in Drupal. <a id="custom_templates"></a> ### Custom Templates The **Custom template** allows using different design for specific pages. Here are some simple steps to use it. ####How to assign Custom Template by content type: 1. Open the Templates list and select **Add template**. 2. Select the **Custom Template** type from the list. !d-custom-template.png! 3. Enter the template title: !d-custom-template-2.png! 4. Enter the template file name: !drupal-custom-template.png! To assign **Custom Template** to the specific content type please use machine_name of the content type, e.g. "my_article": `page-node-my_article.tpl.php` In the same way you can specify taxonomy term, for example: `page-node-taxonomy-term-4.tpl.php` **Note:** The filename should start with "page-" prefix and this prefix should not repeat in the filename. 5. Click "OK". Now the newly added Custom template is available in the Templates list. Select and design it in the way you want. !custom-template-in-template-list.png! ####How to assign Custom Template to the specific nodes by nodeID: 1. Add new Template of Custom Template type. 1. Go to **Drupal administration**. 2. Navigate **Appearance** >> **[choose the theme]** >> **Settings** >> **Template Settings**. If you have several Custom Templates, select the template to be used for a specific page. For example, *"Custom Template 2"*. 3. Specify the relative URL address to the page that should use the Custom Template. For example, *"node/12"* and save the changes. !assigning-custom-template-to-a-page.png! 4. Save changes. #### See also: [Templates][1] [How To Create And Use Custom Templates](page:10804) [1]: http://answers.themler.com/categories/4080/templates-1