management Site Admin
Joined: 13 Oct 2006 Posts: 24
|
Posted: Tue Jun 15, 2010 10:17 am Post subject: Creating New Static Pages |
|
|
This is just from my own experience of creating new Static Pages in Zencart so it may not be 100% correct - but it is a method that works for us.
1) Go to your includes/filenames.php file and add at the bottom of the list:
define('FILENAME_DEFINE_nameofnewpage','define_nameoffile');
define('FILENAME_nameofnewpage','nameoffile');
2) Add a new folder and contents to includes/modules/pages
3) Add a new file to your template/templates folder
4) Add to includes/languages/english/mytemplate folder
5) Add to includes/languages/english/html_includes/ folder
6) Also I would add it to includes/languages/english/html_includes/your template folder
If you have copied an existing Page - like Page_2 - make sure that the setting for it is changed in the Admin Panel (Configuration - Define Page Status - Page 2) to 2 as this will show the text for the file but not the link
7) Add the link to whichever part of the site you would like it in - for example if you want it to display in the information box:
Add a line to includes/languages/yourtemplate/english.php under the Information Box Section
Add a line to includes/modules/sideboxes/yourtemplate/information.php to have the link appear in that box |
|