Monday, October 10, 2011

Files - Lesson 3

Where are templates files?


The best approach to creating a template is studying existing template. You can work out their mechanism of action. Hence most of the things that are written here, you can copy from other templates, eg rhukmilkyway or JA_Purity.

All templates (and of course files) are located in templates catalog. ( /templates )

List of files which are responsible for template:
  •  Index.php - main file in which generate  the whole structure of the document, information for browsers, etc. 
  • templateDetails.xml - xml file with data such as author, creation date version, etc.

Additionally:
  • favicon.ico - the icon that appears on the address page and the pages 
  • template_thumbnail.png - preview the template with the administration panel. Preview is visible when we move to the desired name

Differences between modules, components and plugins - Lesson 2


Standard site created using Joomla consists of ONLY one component and several modules. The following image shows the page on the Joomla! with sample data installed. All that is marked in:
  •  Red are modules,
  •  Green is component

But where are plugins?? Typical plugins which are installed:
  • WYSIWYG editor
  • Searching engine
  • System legacy

Now you see that none of these plugins show directly. It can be assumed that, plugins work in background. But why some galleries are plugin type? It is because they can be called in article. For example to use this gallery in article one must write 

{gallery}folder_name{/gallery}

Creating Joomla Templates - Lesson 1


The aim of this course is to present how to make a template for Joomla!  


After completing these lessons you will be able to:
  • Create own template and install it on Joomla!
  • Modyfi existing templates
  • Understend the concept of templates in Joomla
Modern sites use combinations of XHTML and CSS
xHTML – is responsible for printing information like content, hyperlinks etc
CSS – is responsible for colors, layout  (two columns, three columns, etc)

At the beginning CSS will be omitted. My intention was to present all template creating as simple as it is possible, that is why CSS will be implemented in further lesson.

Now let’s focus on templates which will look like that:


Yes I know, it is horrible. But this is not the point. The point it is to explain the whole template concept.

Our “ugly” template will include such elements:
  • Top column – for logo and slogan
  • Left column – for modules with position left
  • Main column – for content
  • Right column - for modules with position right
  • Footer – for information about copyrights

So let’s begins