Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / I don't want to make global changes...

I don't want to make global changes...

Locked

Views: 1,244

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
8 Jul 2006, 1:47 PM
#1
blue avatar

blue

Zen Follower

Join Date:
Jul 2006
Posts:
115
Plugin Contributions:
0

I don't want to make global changes...

A question regarding the CSS. I want to edit the tpl_header.php, but I only really want it to affect this skin. Is there anyway that I can copy all of the tpl_ files into a folder within the skin folder, and get the CSS to call to these instead.

This is beacuse I am currently designing a few skins and I don't want the changes that I make to this tempalte to affect the other templates.

8 Jul 2006, 9:11 PM
#3
blue avatar

blue

Zen Follower

Join Date:
Jul 2006
Posts:
115
Plugin Contributions:
0

Re: I don't want to make global changes...

Ok, well I read the FAQ, is it really just as simple to make a folder in my template called templates with the edited tpl files in. Surely I have to tell it somewhere to call to this one and not the existing tpl files? Maybe I missed something in the FAQ...

8 Jul 2006, 9:15 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: I don't want to make global changes...

blue,

if you want to have the tpl_header for this skin changed

follow the steps to create a new template.

inside the includes/template/YOUR TEMPLATE create a folder named common

now in this folder place a copy of the tpl_header.php

remember to turn on your new template in the admin-> tools section

also make sure that you are not starting with the classic template as a base for your new template

8 Jul 2006, 9:15 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: I don't want to make global changes...

Nope- it is as simple as that- it is Zen Cart Magic! (as long as you use the correct directory structure)

8 Jul 2006, 10:31 PM
#6
kobra avatar

kobra

Black Belt

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

Re: I don't want to make global changes...

To illustrate: One can have many templates that can be choosen from in the admin the base template directory/folder structure would look some thing like this where each folder would be a different template:(they would be in alpha order)

/templates
   /classic
   /template_default
   /spring
   /summer
   /fall
   /winter
   /red
   /any_other

and in side each one of these there would be a template_info.php file edited to correspond to the template name, a css folder with the css for this template and so forth. All things pertinent to this template that are at this root folder level.

8 Jul 2006, 10:34 PM
#7
blue avatar

blue

Zen Follower

Join Date:
Jul 2006
Posts:
115
Plugin Contributions:
0

Re: I don't want to make global changes...

So If I want to have a different header on one template I would use something like this...

templates
/new_template
/common
/tpl_header.php

Is that right?

8 Jul 2006, 10:35 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: I don't want to make global changes...

Right :thumbsup:

8 Jul 2006, 10:38 PM
#9
blue avatar

blue

Zen Follower

Join Date:
Jul 2006
Posts:
115
Plugin Contributions:
0

Re: I don't want to make global changes...

Then the Zen Cart templating system is very impressive. Now all I have to do is work out how to edit the tpl_header.php and I'll be fine. lol

Seriously though, thank you guys very much for your help, its very nice to have such great support. When my next student loan comes through I'll definately be visiting the donate page =)