Joomla Template Construction – The Explanation and the XML File

Because of the programming of Joomla, making a format to control the styling and design of your layout can be something that may get to be distinctly important as you advance along the way of your own Joomla site, this is the prior minute disappointment starts. As controlling the many elements of a Joomla format in no simple deed at initial, a Joomla layout comprises of a xml document containing the establishment directions. A CSS styling sheet to deal with the styling of the considerable number of articles, divs, frames and so forth lastly the index.php document. Joomla Themes 

There are numerous different records that might be utilized as a part of for the format however the above rundown shows the center documents required while making a Joomla layout. Presently to talk about how I would by and large begin the programming of a format.

I start with the XML record as this is the document that should contain the guidelines for Joomla to introduce the record, this records can turn into a stock standard duplicate and glue for the formats you develop, in any case if there any records that were utilized as a part of the past layout and not in the new layout you should expel them from the XML document or you will locate a shocking mistake when you attempt to introduce the layout in the backend of Joomla.

Beginning code:

The code beneath must be utilized at the absolute starting point of the layout. As this is expected to approve the code utilized as a part of the record.

<?xml version=”1.0″ encoding=”utf-8″?>

<!DOCTYPE introduce PUBLIC “-/Joomla! 1.5//DTD format 1.0//EN” “http://www.joomla.org/xml/dtd/1.5/layout install.dtd”>

The following area disclose to Joomla what it is introducing.

<install version=”1.5″ type=”template”>

At that point come the subtle elements of the layout

<name>The formats name</name>

<creationDate>22/04/2011</creationDate>

<author>Your Name</author>

<authorEmail><a href=”mailto:example@example.com”>example@example.com</a></authorEmail>

<authorUrl>Your URL</authorUrl>

<copyright>The Copyright Info</copyright>

<license>GNU/GPL</license>

<version>1.0</version>

<description>The depiction of the Template</description>

The following area discloses to Joomla what documents should be introduced with the format this contains both individual records and also organizers that Joomla will introduce. Every one of the documents utilized for the layout must be recorded if the record is not recorded Joomla won’t introduce the record which may give back a mistake or cause your format to glitch.

<files>

<filename>index.php</filename>

<filename>templateDetails.xml</filename>

<filename>css/template.css</filename>

<folder>images</folder>

</files>

This areas discloses to Joomla which positions you are utilizing as a part of this layout, the names for the positions are totally to you. As they are controlled by the file record. So make position names you are alright with and you will utilize consistently, however as I have developed as a developer so has the names and measure of positions I utilize. The underneath recorded positions are standard to Joomla are numerous developers utilize particular positions for particular modules. For instance client 4 is by and large utilized for the inquiry module.

<position>breadcrumb</position>

<position>top</position>

<position>user1</position>

<position>user2</position>

<position>user3</position>

<position>user4</position>

<position>user5</position>

<position>user6</position>

<position>left</position>

<position>right</position>

<position>footer</position>

<position>debug</position>

<position>syndicate</position>

The Final segment is the parameters segment, this is utilized to permit the backend to control certain territories of the format or option hues for the layout. It can likewise be utilized to control the investigation inclusion.

<params>

</params>

Guarantee that you end the establishment off with the accompanying tag.

</install>

This is the very essentials of a Templates XML document, this record contains the guidelines for Joomla when introducing the format to your Joomla site.

The following article will demonstrate what the fundamental development of the file .php record.

Leave a Reply

Your email address will not be published. Required fields are marked *