0
Welcome Guest! Login
0 items Join Now

SOLVED Renaming a template

    • RobinR's Avatar
    • RobinR
    • Rocketeer
    • Posts: 50
    • Thanks: 0
    • Website Designer

    SOLVED Renaming a template

    Posted 13 years 11 months ago
    • Hi all!

      Is there any way to rename a template?

      I want to install a RocketTheme Gantry template on a site, but want to rename the template to the company name.

      Can this only be done before installing it (rename .tgz file, rename template folder in it and edit templateDetails.xml), or can it also be done after it has been installed? What has to be edited to make this work?

      Thanks in advance!

      Robin
    • Last Edit: 13 years 11 months ago by RobinR.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Renaming a template

    Posted 13 years 11 months ago
    • Renaming the template is not so easy ... be sure to have a backup of your site before you do that.
      Here is an example ...
  • Re: SOLVED Renaming a template

    Posted 13 years 11 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Renaming a template

    Posted 13 years 11 months ago
    • thank you sophie, cant believe that I forgot to add the link in my post ;-)
  • Re: SOLVED Renaming a template

    Posted 13 years 11 months ago
    • RobinR's Avatar
    • RobinR
    • Rocketeer
    • Posts: 50
    • Thanks: 0
    • Website Designer

    Re: SOLVED Renaming a template

    Posted 13 years 11 months ago
    • Thanks all! I guess it should work as well when not using RocketLauncher. Will try.
  • Re: SOLVED Renaming a template

    Posted 12 years 11 months ago
    • Since this comes up, here are a few things I have learned: :shock:

      The minute you install the Gantry free template in a Joomla 1.7 installation, do the following:

      1) use phpMyAdmin to search for all references to rt_gantry in the DB, and replace those with the name you are giving the template. This should be relatively easy to do, even for a novice. It worked for me! :cheesy:

      2) rename the folder containing the template.

      3) replace all mentions of rt_gantry in the template details and options files in the template folder.

      4) replace all mentions of rt_gantry in the files contained in the template's html folder (for instance several of the files in the mod_roknavmenu folder refer to rt_gantry and you'll get error messages when saving menu items if you don't).

      You can change the name of the template as it appears in the Template style manager - when I do this I shrink the font for "v 3.xx" to 11px and add some text into the code so it says "using Gantry Free Template v3.x.x" as well as linking that text to the Gantry site (just to show it was based on an open source solution. Even if my client wants it to look like it was all custom made, gratitude costs nothing).

      Using this process I have created several great sites with customized template controls. All mentions of Rockettheme are there in the code, of course (other than some CSS sheets - sorry guys, but that WAS all my work), however the names the client and site visitors see are replaced so it looks like it is THEIR template. I even have the Rockettheme logo and link in copyright replaced with my own. Trust me, when I got to this point I was feelin' pretty good about myself. :P

      Some other neat tips for y'all:

      - use the CSS sheets to replace the #rocket div background with your logo, specifying size.

      - change the link of the logo: go to libraries/gantry/features and change the php file for copyright. All of the main features for Gantry are located here - the features folder in the free template is usually empty. Don't rename the div (pain in the butt fallout if you do) but you can rename the alt text as well.

      - remove any module positions your clients are unlikely to use from the options files. Saves confusion.

      - replace the image for the template at root level with a screenshot of your completed site.

      - replace the image for the preset, and delete any preset images and references in the template options.

      - re-write any of the tips for various elements of the template manager, if your clients need a bit of instruction beyond what Rockettheme provides.

      And Rockettheme - you guys rock for making Gantry such a cool and easy to use framework. Tip o' the hat - sincerely! It would be super-cool if you put instructions like this somewhere easy to find. I wrote this screed because it took me a while to figure out all this, and since this forum post keeps showing up in searches for info, I thought I'd put a complete solution here. 8)

      Of course, if you update the template once all this is done, you'll have to do it manually I suppose, to make sure many of these changes stick... but for now that's the most complete solution I can come up with.

      [whoops! I forgot to mention the language file for the template - that has to be renamed to match your new template name. Thanks to Henning for pointing that out in his reply below].
    • Last Edit: 12 years 11 months ago by Michael R Cowie.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Renaming a template

    Posted 12 years 11 months ago
    • The easiest way is to rename all the stuff before you install the template.
      Download the template, unpack it.
      Do a global search in replace in the code... rename the folder and the language files.
      Pack it it again ... install it.
      Takes just 3 minutes.
  • Re: SOLVED Renaming a template

    Posted 12 years 11 months ago
    • Thank you Henning - the procedure I outlined takes about 3 minutes when you know what you are doing. Unfortunately I did not when I began the process of figuring this out. Perhaps you could provide some further assistance by unpacking the phrase "Do a global search".

      Is there a simple way of searching through all the php, xml and other files to find all instances of the text string "rt_gantry"? As a relatively inexperienced programmer, who uses a Mac, I know I can do this with spotlight to some degree, however it is not easy to narrow a spotlight search to a single folder. My method involved opening all the files, searching for "rt_gantry" and replacing it as I found it. Is there a method one can use on Mac OSX, or an application you would recommend? I'm sure this would also help with altering the update files for the template, for when an update is recommended.

      And thank you - I forgot to mention the language files. You have to rename the ones for gantry that are installed.

      And happy holidays to you. You wear the hat well!
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED Renaming a template

    Posted 12 years 11 months ago
    • I'm on mac too. Right now I'm using Espresso but Andy's new love Sublime-Text-2 can do a global search and replace too.
      www.rockettheme.com/magazine/1319-using-...xt-2-for-development

      Not sure about Coda (I have that but dont really use it)

      Personally I like to keep a "not-renamed" version of template while I develop something
      So I can switch between versions.

Time to create page: 0.047 seconds