Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Best way to work on a new template

Best way to work on a new template

Locked

Started by rhodesengr on 5 Feb 2008, 6:44 AM · Views: 1,178

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
5 Feb 2008, 6:44 AM
#1
rhodesengr avatar

rhodesengr

New Zenner

Join Date:
Aug 2007
Posts:
59
Plugin Contributions:
0

Best way to work on a new template

What is the best way to work on a new template while the existing template is still active on the store. I tried making a copy of the whole store in a seperate directory, changed all the paths etc, but when i change the template in the new copied version, it changed it for the main version also. Obviously the template is stored in the database. I don't really want to make another database. Is there another way to so this?

5 Feb 2008, 7:14 AM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Best way to work on a new template

Templates are stored in files, no database here.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

5 Feb 2008, 4:51 PM
#3
rhodesengr avatar

rhodesengr

New Zenner

Join Date:
Aug 2007
Posts:
59
Plugin Contributions:
0

Re: Best way to work on a new template

I understand that but please read what I did carefully. When I changed the template running the copy, it changed the template running from the main directory also. I want to work on the template without effecting the live store.

5 Feb 2008, 4:56 PM
#4
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: Best way to work on a new template

The only way to do this is to transfer your store onto your computer. Once that template is done you will have to transfer your store back to your host site.

nomad

5 Feb 2008, 4:57 PM
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Best way to work on a new template

Yup, that is the best way. Either create a test site on your server, or create it locally on your computer.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

5 Feb 2008, 5:08 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Best way to work on a new template

Obviously the template is stored in the database. I don't really want to make another database. Is there another way to so this?
The template is file based but what template being applied is in the DB.

You can create another test install with it's own DB and load a copy of your current DB to it.

Zen-Venom Get Bitten

5 Feb 2008, 6:32 PM
#7
rhodesengr avatar

rhodesengr

New Zenner

Join Date:
Aug 2007
Posts:
59
Plugin Contributions:
0

Re: Best way to work on a new template

Thanks. I pretty much came to that conclusion. I was just hoping there was some tricky way to do it.

5 Feb 2008, 6:35 PM
#8
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Best way to work on a new template

Even if there is, are you willing to do some "tricky" things on your live site?
Working on a new template some times requires modifying core files as well. It's the best that you work on a test site first.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

5 Feb 2008, 7:09 PM
#9
rhodesengr avatar

rhodesengr

New Zenner

Join Date:
Aug 2007
Posts:
59
Plugin Contributions:
0

Re: Best way to work on a new template

no. thats why I made a copy and was working on that. Now I know I need to make a copy of the database also and not use the live data base.