Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Override system seems complicated

Override system seems complicated

Locked

Views: 5,800

Results 21 to 23 of 23
This thread is locked. New replies are disabled.
18 Jan 2007, 10:19 PM
#21
cmcgaugh avatar

cmcgaugh

New Zenner

Join Date:
Dec 2006
Location:
Escondido, California
Posts:
38
Plugin Contributions:
0

Override system seems complicated

....one final note....after my last post, I was checking the Wiki, and
found this page

http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Templates

If I had done that earlier, I wouldn't have needed to ask!

**But **now I can refer other newbies to it who are scratching their heads
wondering about how the overrides system works.

I did use the search to find the threads about the overrides system, but
the Wiki had the specific info I needed all along.....just didn't think to look! :blush:

Now I'm saving all the Wiki pages that I need locally for quick access.

Thanks for all the great help!
:wink2:

28 Jan 2007, 4:04 PM
#22
timuk avatar

timuk

New Zenner

Join Date:
Jan 2007
Posts:
19
Plugin Contributions:
0

Re: Override system seems complicated

cmcgaugh:

....one final note....after my last post, I was checking the Wiki, and
found this page

http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Templates
:wink2:


To paraphrase: "The name of the named name is named as the name of the name of the named file"

I’m English, I can understand the words individually but this description for too wordy and confusing for me to understand.

Is this it how the system works … ?

My admin panel (tools/template selection) tells me that a “classic” template in use and goes on to describe that as a “classic green template”. That's the default 'look' that my installation came with. I guess this seems to tally with all those 'classic' folders that are seen scattered about the file hierarchy. Those being the files that comprise the ‘Classic Green Template’ and if I were to switch off that template through the admin then none of those files would be utilised?

The contents of those ‘classic’ folders therefore determine the files that can be optionally overridden. So should I take one of those files and put it my own, adjacent, folder called “MyTemplate” and make the appropriate changes to the “template_info.php” file then I will be able to utilise my “MyTemplate” additions from the admin panel and thereby use the overridden file. However in doing so I would have to be aware that non of the contents of the ‘classic’ folder would be utilised anywhere else?

Have I got this right?

28 Jan 2007, 4:13 PM
#23
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Override system seems complicated

TimUK:

My admin panel (tools/template selection) tells me that a “classic” template in use and goes on to describe that as a “classic green template”. That's the default 'look' that my installation came with. I guess this seems to tally with all those 'classic' folders that are seen scattered about the file hierarchy. Those being the files that comprise the ‘Classic Green Template’ and if I were to switch off that template through the admin then none of those files would be utilised? Correct

The contents of those ‘classic’ folders therefore determine the files that can be optionally overridden. Not precisely. Any file that exists in the same directory as that classic folder can be copied into the classic folder (and therefore your own template folder)

So should I take one of those files and put it my own, adjacent, folder called “MyTemplate” and make the appropriate changes to the “template_info.php” file then I will be able to utilise my “MyTemplate” additions from the admin panel and thereby use the overridden file. However in doing so I would have to be aware that non of the contents of the ‘classic’ folder would be utilised anywhere else?
Correct