J3.x

Difference between revisions of "Getting Started with Templates"

From Joomla! Documentation

m (Undo revision 102373 by Hutchy68 (talk) revert)
m (this will probably work)
Line 16: Line 16:
 
= Installing Templates =
 
= Installing Templates =
 
{{:J3.1:Installing a template}}
 
{{:J3.1:Installing a template}}
<headertabs/>
+
<span class="noprint"><headertabs/></span>
 
<noinclude>
 
<noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]

Revision as of 07:37, 20 August 2013

J3.x:Getting Started with Joomla!/Getting Started pages header

Intro

This introductory tutorial will give you an insight into the Joomla! templating system and what you can do with it.

Purpose of templates

<translate>

J3x-template-example-screenshot.png

</translate>

<translate> A template controls the overall look and layout of a site. It provides the framework that brings together common elements, modules and components as well as providing the cascading style sheets for the site. Both the Frontend and the Backend of the site have templates.</translate>

<translate> When Joomla! is first installed, several templates are automatically included. You can find many more templates at other websites. Some are available without charge under various licenses, and some are for sale. In addition, there are many developers available who can make custom templates. You can also make your own template.</translate>

<translate> Templates are managed with the Template Manager, which is located on the Extensions menu in the Backend (Administrator) area of your site.</translate>

<translate>=== Why Does Joomla! Use Templates? [A Real Beginner's Guide!] === </translate> <translate> The way Joomla! is designed separates out the key tasks involved in producing a website for efficient maintenance of the software. One of these tasks is to create the aesthetic (the look, feel and layout) of the site. This includes making decisions such as which content elements (components, modules and plugins) you may want to place in any given page.</translate>

<translate> When producing a web page, the location of most elements will stay the same (menus, banner locations, sidebars etc.). Additionally, you will want to create the same look (fonts, header styles, colour scheme etc.) for every page. For some parts of the site you may want to alter the general feel to indicate a different purpose for those pages (such as a blog section). A little planning is required for this, but once you have settled on the overall layout for your site, you then have the task of producing each page of content.</translate>

<translate> And that’s where the template comes in. You can either write all the code for each page separately, or use a template for each major section of your site so that when you want to create a new page you simply “fill in the blanks”. Okay, perhaps it's not that simple, but this tutorial is designed to give you a step by step guide for effective template use, starting with how to use one and ending with how to create one for yourself.</translate>

<translate>

  1. Use one of the templates supplied with Joomla!
  2. Download one of the many free offerings from the Internet.
  3. Pay for one to be modified or produced from scratch if your needs cannot be met any other way.</translate>

<translate> Summary – a template controls the look of your site and at the same time allows the website Administrator to focus more on the actual content.</translate>


What can you do

<translate> A template is used to manipulate the way content is delivered to a web browser or screen reader. Here are some ways you can employ this on your Joomla! site.</translate>

<translate>=== Layout === </translate> <translate> The template is the place where the design of the main layout is set for your site. This includes where you place different elements (modules). For example: You can control the placement of menus, a login form, advertising banners, polls, etc.</translate>

<translate> J3x-template-example-module-changes-screenshot.png</translate>

<translate> Note the changes in content layout!</translate>

<translate> The main body(article) of the page can be altered in style (you can select from different styles of display such as typical blog layout, a news article, etc.) depending on the templates layout. *See the example image. Note the differences in layout, but how the look is consistent. The sidebar of modules has been moved from left to right and its order rearranged.</translate>

<translate> If the template is designed to provide choices, you can also "dynamically" alter the content placement on your site, perhaps putting the main menu on the right or left side of the screen.</translate> <translate>=== Color Scheme === </translate> <translate> Using CSS within the template design, you can change the colors of your backgrounds, text, links or just about anything that you could within your ordinary HTML code. Some templates provide a method to change the color in template management, others require you to modify the template's CSS file(s).</translate>

<translate>=== Images and Effects === </translate> <translate> You can also control the way images are displayed on the page, and even create Flash-like effects or include AJAX applications such as dropdown menus.</translate> <translate>=== Fonts === </translate> <translate> The same applies to fonts. The designs for these are all set within the template's CSS files to create a uniform look across your entire site, which makes it fantastically easy to change the whole look just by altering one or two files rather than every single page.</translate> <translate>=== Browser-Specific Solutions === </translate> <translate> A template can be designed to alter how it displays on different web browsers, allowing you to take full advantage of the latest developments without making your site inaccessible to those who are not able to run "up-to-the-minute" system upgrades. (Such as certain companies who limit what software their employees can use.)</translate>


Templates Supplied

<translate> The following templates are supplied with a default installation of Joomla! 3.x</translate> <translate>==Site Templates== </translate> <translate>

  • Protostar (Default template)
  • Beez 3</translate>

<translate>==Administrator Templates== </translate> <translate>

  • ISIS (Default template)
  • Hathor</translate>


Switching Templates

<translate> To change the default Template for the Site (Frontend) or Administrator (Backend), follow these steps:</translate> <translate>==Access the Template Manager== </translate> {{:J3.1:To access the Template Manager/<translate> en</translate>}} <translate>==Managing Default Template== </translate> <translate> From here you manage your templates for Frontend and Backend. The default view shows your installed Frontend templates styles. The default style for the Frontend is marked with a star; in the image below it is 'protostar - Default'.</translate>

<translate> To change the default style to 'beez3':

  • click the checkbox left from the style name to select it;
  • click "Default" on the toolbar;

the star changes from 'protostar' to 'beez3' and you are done. Alternatively, you can click on the shadow of a template's default star to quickly set the template as default.</translate>

<translate> You can use the filter drop-downs on the top or the filter search to limit the number of templates shown in the list of templates. Other options are:

  • edit - edit the options and Menu Assignment a template is shown on (see below)
  • duplicate - duplicate the style of the template
  • delete - delete a template style (must not be default template style)

</translate>

[[Image:30-Switching-templates-1<translate>

-en</translate>.png|800px]]

<translate>

Assigning More Than One Template Style for the Frontend

</translate> <translate> Joomla gives you the option of switching between two or more styles on the Frontend. 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.</translate>

<translate>

Template Manager Method

</translate> <translate> Click on Extensions  Template Manager</translate>

<translate>

  • 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.</translate>
[[File:30-Template-manager-select-edit<translate>

-en</translate>.png|800px]] <translate>

  • 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.</translate>
[[Image:30-Switching-templates-assign-menus<translate>

-en</translate>.png|800px]]

<translate>

  • Click "Save" on the toolbar and you´re done. The menu item will now show the selected template.
  • Go to the Frontend of your website and refresh the page to view the modifications.</translate>

<translate>

Menu Manager Method

</translate> <translate>

  • 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.

</translate>

[[File:30-Menu-item-template-management-edit<translate>

-en</translate>.png|800px]]

<translate>

  • Go to the Frontend of your website and refresh the page to view the modifications.</translate>

<translate>

See Also

</translate> <translate> Template style</translate>


Installing Templates

<translate>

Install Via Admin Panel (Packed Template File)

</translate> <translate> Log into the Backend of your site (www.your-site.com/administrator/)</translate>

<translate> Click on Extensions  Extension Manager</translate>

[[Image:30-Installing-template-navigate-<translate> en</translate>.png]]

<translate> You see the page "Extension Manager"</translate>

<translate> From here you can install your Templates, Plugins, Modules, Components and Languages. You have several options:</translate>

  1. <translate>

Install from Web - to select an extension listed on the Joomla! Extension Directory</translate>

  1. <translate>

Upload Package File - to select a package from your PC, upload and install it</translate>

  1. <translate>

Install from Folder - to enter the path where the package is located on your webserver</translate>

  1. <translate>

Install from URL - to enter the URL to the package</translate> <translate> Option 4 does everything for you. Your environment needs to be properly configured to allow this. Option 2 requires you to download the extension to your PC. Option 3 requires you to unzip and move the folders/files to your webserver. All options require that the webserver has write access to the webspace.</translate>

<translate> Here, we choose the second method: Upload Package File</translate>

<translate> Drag and drop file to the upload area to upload. Alternatively you can also click the button "Or browse the file" to select the package from your PC.</translate>

[[Image:30-Installing-template-upload-package-file-<translate> en</translate>.png|800px]]

<translate> If the package contains no errors you are done and get a success message like:</translate>

[[Image:30-Installing-template-install-success-<translate> en</translate>.png]]

<translate>

Verify Installation

</translate> <translate> Go from tab 'Install' to tab 'Manage', set the 'Type' filter to 'Template'. The installed template should appear in the list. If it does, the template is properly installed. Now you can assign one of styles to a menu item or set the style as default. For Administrator templates make sure you have two windows of the template manager. Activate the new template in one of them and reset it in the other one if something went wrong.</translate>

<translate>

Install via FTP (Unpacked Template File)

</translate> <translate> Templates can also be installed via FTP without packaging them. Simply select the template folder on your PC and upload it to your server, using your favourite FTP software. Be sure you upload the template folder to the directory: /path_to_joomla/templates/ - where /path_to_joomla/ is the location of your Joomla! installation on the server. This method is mostly used when you have created a template yourself, and do not want to have to package it to install the template, or if you want to upload more than one template at once. You must then go into Extension manager and click on Discover in the sub menu. Click on "Discover" in the toolbar if your template doesn't immediately appear. A list of uninstalled items in the FTP should then appear. Click the checkbox to the left of your template and click on the button 'Install'.</translate>

<translate> Note: Do not try to use FTP to install Components, Modules and Plugins if you are a beginner/novice. These items need database entries which have to be inserted manually if you bypass the package installer.</translate>


<headertabs/>