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...)
 
 
(7 intermediate revisions by 4 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.
+
{{notice|This answer is transcluded from [[J{{CurrentSTSVer|minor}}:Switching templates#Assigning more than one template for the Front-end|Switching templates]]}}
 +
{{#lsth:J{{CurrentSTSVer|minor}}:Switching templates|Assigning more than one template for the Front-end}}
  
To assign a template to a page, you must first make sure that there is a direct menu link to the page.
+
==Notes==
 +
*You cannot assign the default style to individual pages.
  
* Go to [[Extension]]s>>[[Template Manager]]
+
;*Understanding how assignments work
* Select the Template 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 template to.
+
* Save
+
  
Note that you cannot assign the default template to individual pages.
+
: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.
  
'''Understanding'''
+
;*Assigning templates/styles according to other criteria
  
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.
+
: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:Administration FAQ]]
+
 
[[Category:Getting Started FAQ]]
 
[[Category:Getting Started FAQ]]
[[Category:Version 1.5 FAQ]]
+
[[Category:Template FAQ]]
 +
[[Category:Template Management]]</noinclude>

Latest revision as of 16:18, 21 June 2013

Info non-talk.png
General Information

This answer is transcluded from Switching templates

Joomla! gives you the option of switching between two or more styles on the Front-end. This is done with "Menu Assignment", so you can set different styles for each menu or only a menu item. This allows specific "pages" that are defined by menu links to set for a "specific" style. Styles can be of different templates.

Template manager method

Click on: Extensions  Template Manager

  • You will see your installed template styles, now choose a style which is not set as your default one. Yellow star indicates the style is a default.
30-Template-manager-select-edit.png
  • Click on the style name or hit the checkbox to the left of the style name, and click "Edit" on the toolbar.
  • You now see the page "Template: [ Edit style] ", and go to the section "Menu Assignment" block and choose the menu items on which the style should be shown.

30-Switching-templates-assign-menus.png

  • Click "Save" on the toolbar and you´re done. The menu item will now show the selected template.
  • Go to the front-end of your website and refresh the page to view the modifications.

Menu manager method

  • Access menu item Menus  Menu Name
  • Choose a menu item by checking the box to the left of its name and then click on the Edit toolbar button. Alternatively, simply click the name of the menu item to edit it.
  • On the Edit Menu Item screen, in Template Style, choose the desired template style and click on the Save button.

30-Menu-item-template-management-edit.png

  • Go to the frontend of your website and refresh the page to view the modifications.


Notes

  • You cannot assign the default style to individual pages.
  • Understanding how assignments work
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.