Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Create new page with different look? (no header, sidebox, etc)

Create new page with different look? (no header, sidebox, etc)

Views: 576

Results 1 to 3 of 3
11 Jan 2011, 8:38 PM
#1
cindy2010 avatar

cindy2010

Zen Follower

Join Date:
Apr 2010
Posts:
100
Plugin Contributions:
0

Create new page with different look? (no header, sidebox, etc)

I have a requirement that I think was not well discussed (at least I can't find it, yet. :-):

Basically, I want to create a totally "new" page in my zen cart that:

  1. this page will NOT share the common layout of all other pages (no head nav, foot, no sidebox, etc.): basically, I want to fully control the look and feel of this page. (that means, I will write my own code all the way from "<hml>" to "</html>")

  2. but I need to access the database from this page, so I would need the global variables like $db, and all other language files, the static variables (XXX_YYY). (no need the css files)

Anyway I can do that?

Thanks a lot.

12 Jan 2011, 2:32 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Create new page with different look? (no header, sidebox, etc)

Try an experiment to see how this works

\Get a copy of tpl_main_page.php and see the comments inside of it

Experiment with say the privacy page

The url to it is

domain blah blah/index.php?main_page=privacy

To make the differences you want you edit the tpl_main_page.php file to not show l & r columns

Now in your template area on the server you will make a folder named "privacy" and place the edited file there

Load the page and you should now have no l & r columns

Do the same for your page by getting the url to it and I suggest you create a new define page for this
You can review how by looking at the files & edits(about 8) in the 3rd party "About Us" module

12 Jan 2011, 7:45 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Create new page with different look? (no header, sidebox, etc)

Or if you are not using define page 2, 3 or 4, you could repurpose one of them for your custom content as kobra describes.