WebDev22 Posted January 14, 2010 Share Posted January 14, 2010 We added a series of promotions to our home page and want to add a link to pages with details of the offers. How do you create a blank page with just the header, left/right navigation and footer? Thanks. Link to comment Share on other sites More sharing options...
jsi Posted January 14, 2010 Share Posted January 14, 2010 We added a series of promotions to our home page and want to add a link to pages with details of the offers. How do you create a blank page with just the header, left/right navigation and footer? Thanks. Copy an existing page like shipping.php and rename it to what you want. Then rename the corresponding language files and add it to the Filenames page. Example: I want to create a page named "sales-promo". Here is what I do. 1. Open your Filenames.php file located in includes/filenames.php Right before the ?> at the end, add your new page title like this: define('FILENAME_SALES_PROMO', 'sales-promo.php'); 2. In your root folder, Copy shipping.php and rename it to sales-promo.php (www.yoursite.com/sales-promo.php) 3. Edit the new sales-promo.php file. Find: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING)); Replace it with the name you added in filenames: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SALES_PROMO); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SALES_PROMO)); 4. Go to includes/languages/english/, Copy shipping.php and rename it to sales-promo.php Edit the NAVBAR_TITLE, HEADING_TITLE & TEXT_INFORMATION as desired. (repeat step 4 for each language folder you have) Thats it! NOTE: The english folder file is the one that contains the actual content you want to show on the page. HEADING_TITLE is the title of the page. TEXT_INFORMATION is the actual body content of your page. You can simply create the content of your page using dreamweaver or something so its easy to edit/create, then simply copy and paste the code into this field (do not include body tags. Only the actual HTML table or CSS) mmmmmmmmmmmm. Doughnuts . . . haha. i said nuts. Link to comment Share on other sites More sharing options...
WebDev22 Posted January 23, 2010 Author Share Posted January 23, 2010 Copy an existing page like shipping.php and rename it to what you want. Then rename the corresponding language files and add it to the Filenames page. Example: I want to create a page named "sales-promo". Here is what I do. 1. Open your Filenames.php file located in includes/filenames.php Right before the ?> at the end, add your new page title like this: define('FILENAME_SALES_PROMO', 'sales-promo.php'); 2. In your root folder, Copy shipping.php and rename it to sales-promo.php (www.yoursite.com/sales-promo.php) 3. Edit the new sales-promo.php file. Find: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING)); Replace it with the name you added in filenames: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SALES_PROMO); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SALES_PROMO)); 4. Go to includes/languages/english/, Copy shipping.php and rename it to sales-promo.php Edit the NAVBAR_TITLE, HEADING_TITLE & TEXT_INFORMATION as desired. (repeat step 4 for each language folder you have) Thats it! NOTE: The english folder file is the one that contains the actual content you want to show on the page. HEADING_TITLE is the title of the page. TEXT_INFORMATION is the actual body content of your page. You can simply create the content of your page using dreamweaver or something so its easy to edit/create, then simply copy and paste the code into this field (do not include body tags. Only the actual HTML table or CSS) I'm circling back to this and will follow your directions. Thanks for taking the time to post. Link to comment Share on other sites More sharing options...
WebDev22 Posted January 25, 2010 Author Share Posted January 25, 2010 jsi - Your instructions worked perfectly. Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.