Actions

Difference between revisions of "How do you assign a template to a specific page?"

From Joomla! Documentation

(New page: In Joomla! there is a default template, but you can assign other templates to specific "pages" that are defined by menu links. To assign a template to a page, you must first make sure tha...)
 
(edited to talk about template styles instead of just templates. Added link to JED for other extensions that can help to assign templates.)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
In Joomla! there is a default template, but you can assign other templates to specific "pages" that are defined by menu links.
 
In Joomla! there is a default template, but you can assign other templates to specific "pages" that are defined by menu links.
  
To assign a template to a page, you must first make sure that there is a direct menu link to the page.
+
Joomla 1.6 introduced the concept of Template Styles. Styles allow you to set up different instances of the same template, each with different parameters. It is these styles that you can assign to different pages in Joomla.
 +
 
 +
To assign a template style to a page, you must first make sure that there is a direct menu link to the page.
  
 
* Go to [[Extension]]s>>[[Template Manager]]
 
* Go to [[Extension]]s>>[[Template Manager]]
* Select the Template and click the edit icon (or click the template name)
+
* Select the style and click the edit icon (or click the template name)
 
* In the left column, change "None" to "Select from List."
 
* In the left column, change "None" to "Select from List."
* Select the links you want to apply the template to.
+
* Select the links you want to apply the style to.
 
* Save
 
* Save
  
Note that you cannot assign the default template to individual pages.
+
Note that you cannot assign the default style to individual pages.
  
 
'''Understanding'''
 
'''Understanding'''
  
The templating system uses the [[ItemID]] to determine which template to show. ItemIDs are created when you create a menu link. This is why only menu items are shown in the list of pages to which you can assign templates.
+
The templating system uses the [[ItemID]] to determine which template/style to show. ItemIDs are created when you create a menu link. This is why only menu items are shown in the list of pages to which you can assign templates/styles.
 +
 
 +
'''Assigning templates/styles according to other criteria'''
 +
 
 +
3rd party extensions allow you assign templates according to other critera. See the [http://extensions.joomla.org/extensions/style-a-design/templating Templating] section of the Joomla Extensions Directory.
  
[[Category:FAQ]]
+
<noinclude>[[Category:FAQ]]
 
[[Category:Administration FAQ]]
 
[[Category:Administration FAQ]]
 
[[Category:Getting Started FAQ]]
 
[[Category:Getting Started FAQ]]
 
[[Category:Version 1.5 FAQ]]
 
[[Category:Version 1.5 FAQ]]
 +
[[Category:Template Management]]</noinclude>

Revision as of 16:45, 21 November 2012

In Joomla! there is a default template, but you can assign other templates to specific "pages" that are defined by menu links.

Joomla 1.6 introduced the concept of Template Styles. Styles allow you to set up different instances of the same template, each with different parameters. It is these styles that you can assign to different pages in Joomla.

To assign a template style to a page, you must first make sure that there is a direct menu link to the page.

  • Go to Extensions>>Template Manager
  • Select the style and click the edit icon (or click the template name)
  • In the left column, change "None" to "Select from List."
  • Select the links you want to apply the style to.
  • Save

Note that you cannot assign the default style to individual pages.

Understanding

The templating system uses the ItemID to determine which template/style to show. ItemIDs are created when you create a menu link. This is why only menu items are shown in the list of pages to which you can assign templates/styles.

Assigning templates/styles according to other criteria

3rd party extensions allow you assign templates according to other critera. See the Templating section of the Joomla Extensions Directory.