Support Joomla!

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 61 guests online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow Help Screens arrow Help Screens :: Help arrow Chapter 8: Managing Templates & Modules Positions**WIP

Chapter 8: Managing Templates & Modules Positions**WIP PDF Print E-mail

The Template Manager provides a workbench for installing and manipulating templates. Administrators and Managers with special authorization to the Template Manager can edit the template. The initial view provides you with a list of the installed templates. A green 'tick' will be shown adjacent to the name of the currently published template. Some supplied information about each template is also shown.

Templates are also assignable to different parts of your site, much like modules are. If you have several templates installed on your Joomla! system, you can now take advantage of all of them. You are able to assign a template to a specific page (or pages) from Toolbar.

When you select a template to assign, you will be shown a list of pages to choose from. You can select multiple pages from the menu and assign them to a template. When assigned, the template will appear when a user clicks on these pages. This will override the default template.

If you want to remove an assigned template from one (or some) page(s), select the assigned template again (radio button), and click the Assign icon in the Toolbar. Now either deselect the items you do not want assigned for this template anymore, or click "None" to completely remove the assignment for this template.

The Template Manager also allows you to switch the default template (using Default? button) which will appear on all pages for which specific assignment has not been made.

Note:  Both assigned and default template will get overridden by the Template Selector module, if used.

To learn how to install and uninstall both Site Templates and Administrator Templates, click:

  Install/Uninstall a Language or Template

To learn how to edit and publish both Site Templates and Administrator Templates, click:

  Template Manager
Note: The Administrator Templates can be switched by hitting the "Publish" icon as well. They are not assignable to pages in the Administrator.

Module Positions and Positions Preview:

The Module Positions page allows you to enter details about the module positions you have used in your template. All the default module positions are already entered and in general it is unlikely you would need to change this.

Should you need positions that do not pre-exist in the default Joomla! setup, you can simply add a new name of the module position and a description. The description is optional.

Once you have entered any additional positions you have created, click the "Save" icon in the Toolbar and the changes you have been made will be entered into Joomla!. You are now able to assign modules to your newly created positions in the Module Manager.

The basic code to insert in your template (templates/name-of-your-template/index.php) to be able to assign modules to a specific position is:

<?php mosLoadModules ( 'position' ); ?>
 

 

 

....where the word 'position' is to be changed to whichever position defined on this page.

For more advanced techniques, see the Developer Manual .

If you wish to visualize your Template with blocks displaying the "Positions" used in the template assigned to your Home Page, then click "Site -> Preview -> Inline with Position".

To learn about the different Module Positions, click:

   Module Positions


---------------------------------------------------------------------------------------------------------------------
Note: 
If you have any suggestions/corrections, please visit the Suggestions, Modifications & Corrections forum

Last Updated ( Sunday, 19 November 2006 )
 
< Prev   Next >