Copyright All rights reserved by realbuzz.comm on Picasa
In this tutorial, we will show how to convert a Joomla 1.5 template to Joomla 2.5 template. We will take default Joomla 1.5 template "rhuk_milkyway" as an example and convert it to Joomla 2.5 native compatible template.
This tutorial covers only template conversion process, so it's assumed that you already have Joomla 2.5 website installed or converted from version 1.5.
There are 5 steps involved.
The first thing to do is to copy the whole theme folder from version 1.5 to version 2.5
Copy the whole template folder
Now, you need to edit folder structure to make it compatible with Joomla 2.5
Edit folder structure to make it compatible
In version 1.5 this file used to store values of template parameters. But in version 2.5, all template parameters are stored in database. So there is no need for file "params.ini".
Joomla 2.5 introduces new file "error.php" to contain layout of error pages. This file is simple and we can reuse the file from default theme "atomic".
Joomla 2.5 introduces new file "template_preview.png" to present big preview image of the theme. You need to make a 640x480 screenshot of your theme and name it "template_preview.png".
Now, you need to edit file "templateDetails.xml" to make it compatible with version 2.5.
img src="/images/content/blog/joomla-25/how-to-convert-joomla-15-template-to-joomla-25-template/template-details-xml-02.png" alt="Change template name in tag
This is very cool feature of Joomla 2.5. Now you don't need to declare all files in some folder, you just need to declare that folder.
Add 2 following tags:
img src="/images/content/blog/joomla-25/how-to-convert-joomla-15-template-to-joomla-25-template/template-details-xml-params.png" alt="Rename tags in section
After editing file "templateDetails.xml", you need to continue to edit file "index.php".
Add code string "JHtml::_('behavior.framework', true);" to the location as seen on screenshot bellow.
Joomla 2.5 allows you to get theme name directly from file "templateDetails.xml" file, so there is no need to declare theme name as plain text.
Now, the converted Joomla 2.5 template is presented in templates folder, but you won't see new theme in Template Manager, because it's not installed yet. Make following steps:
We finished Joomla template migration with template "rhuk_milkyway" for today. Do you have any other ways to convert your template from version 1.5 to version 2.5 ? Please share using comment form belows. Feel free to leave questions if you get trouble with this migration process.