Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / custom <head> for new page

custom <head> for new page

Locked

Views: 881

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
21 Dec 2008, 7:56 PM
#1
andymcc77 avatar

andymcc77

New Zenner

Join Date:
Sep 2008
Posts:
20
Plugin Contributions:
0

custom <head> for new page

Hi,

I have followed the instructions for creating a new page detailed at http://www.zen-cart.com/wiki/index.php/Creating_new_pages

What I would like to do now is create a html <head> section specifically for my new page, which file would I need to alter/create containing a <head> section specifically for this page ?

The main reason for this, is I want to add a google map to this page and need access to the <head> section.

Thanks

Andy:frusty:

21 Dec 2008, 8:43 PM
#2
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: custom <head> for new page

There is absolutely no need to alter the <head> to add google map. If you want to include jscript file, zencart allows you to do it easily in many ways. Please check the documents in the docs/ folder goes with your zencart package.

27 Dec 2008, 4:41 PM
#3
andymcc77 avatar

andymcc77

New Zenner

Join Date:
Sep 2008
Posts:
20
Plugin Contributions:
0

Re: custom <head> for new page

Thanks for the advice, I found I needed to create two new files for my findus page which contains a google map.

includes/templates/MYTEMPLATE/jscript/jscript_findus.js
includes/modules/pages/findus/on_load_findus.js

As there is no equivalent support for onunload (as far as I know) I got around this by placing the following code in the on_load_findus.js file:-

load();" onunload="GUnload();

Not sure if there is any downside or better way than this.

Thanks,

Andy