Rename joomla 1.7 or 2.5 gantry theme

On November 15, 2011, in CMS, Joomla, by ifkas

Changing and renaming the default rt_gantry template name was easy, now on joomla 1.7 & 2.5 is totally different, this is how I did it…

Everyone who build joomla templates with the gantry framework, already knows that it was easy to rename the templates by just renaming the folder and modifying the templateDetails.xml file. Now, that comparing to the new way of renaming was piece of cake. Ok, I had to change the template name because the client demand it.

This is for those who already installed the framework and the template, so this is how I did it:

- First I made a sql backup.
- Opened it with editor and searched for rt_gantry (that is the default template name)
- Found it 7 times, and this is how I updated the sql:

Before you proceed, the l9b1d_ is my db prefix (if you install it with the option of an random generated prefix you will get different, or maybe your preffered and manually added one).

UPDATE  `yournewtemplatename`.`l9b1d_extensions` SET  `name` =  'yournewtemplatename',
`element` =  'yournewtemplatename',
`manifest_cache` = '{"legacy":false,"name":"yournewtemplatename",
"type":"template","creationDate":"October 30, 2011","author":"RocketTheme, LLC",
"copyright":"(C) 2005 - 2011 RocketTheme, LLC. All rights reserved.","authorEmail":"support@rockettheme.com","authorUrl":
"http:\/\/www.rockettheme.com","version":"3.2.12",
"description":"${project.description}","group":""}

Also:

UPDATE  `yourtemplatename`.`l9b1d_template_styles` SET  `template` =  'yournewtemplatename',
`title` =  'yournewtemplatename - Default' WHERE  `l9b1d_template_styles`.`id` =116 LIMIT 1 ;

- Later I renamed the templates/rt_gantry folder to yournewtemplatename.

- In the same folder I changed in templates/yournewtemplatename/templateDetails.xml all lines present with rt_gantry to yournewtemplatename.

- At the end I renamed language/en_GB/en-GB.tpl_rt_gantry.ini to en-GB.tpl_yournewtemplatename.ini

And that’s it !

This post has been updated, same from above works for joomla 2.5

Tagged with:  

13 Responses to Rename joomla 1.7 or 2.5 gantry theme

  1. Jules C says:

    Thank you – this saved me loads of time!

  2. ifkas says:

    Glad it helped you ;)

  3. Mike says:

    All good – except I now get this in Menu items when I edit them:

    JFolder: :files: Path is not a folder. Path: /Applications/MAMP/htdocs/rotella/templates/rt_gantry/images/icons

    What does one change to get rid of this?

  4. ifkas says:

    Hi Mike,
    Did you rename the template name? Because I see its still default one templates/rt_gantry ? If you renamed it also rename the folder name too.
    So its looking for a folder that doesnt exist, does icons folder exist? Just check it.

    Also please check if in root images/stories folder exist.

  5. Mike says:

    Thanks for the answer, but you decided to look at the wrong site. Also, 1.7 doesn’t use images/stories.

  6. pola says:

    But how to change it on Joomla 1.5 sites using custom gantry template?
    I changed folder name and names in templateDetails.xml and language files in admin folder and in joomla languages directory
    the template works well in all menus except the home page . the home page gives a blank white page without any errors or any markup
    If you are interested mail me

    Thanks in advance

  7. sisco says:

    i agree with this posting. i’ve tried it and work. thanks!

  8. Robert says:

    Thanks for the tip saved me time !

  9. Charles says:

    Hey Ifkas
    Many Thanks for your help

    I’ve tried this for joomla 2.5
    and I can’t find the “rt_gantry”
    anywhere in the mySQL.

    I’ve even tried looking line by line.
    is it still the same for joomla 2.5?

    Many Thanks and Best Regards

    Charles

    • ifkas says:

      Hey hi, Charlie !

      I’ve just checked same tables and fields are affected, tables are: one with the yourdbprefix_extensions (search for the gantry field with type “template”, not the type component or plugin or library)
      Second table is yourdbprefix_template_styles and here change the data too. And thats it, the process is same as above, nothing changed !!!

      Cheers
      - will update the name of the post, also considering of maybe making a short video tutorial about this one, what ya think?

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>