OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: How do we add new content pages?
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Installation and Configuration
stevemcl
How do I add new pages with general content and still have all the borders show up,
I'd like to have another page like:
/catalog/includes/languages/english/index.php

should I just copy index.php and make it:
/catalog/includes/languages/english/indexp2.php


but then I need to create one for each language? and fix:
/catalog/index.php

I guess I don't understand when the url is:
/catalog/index.php
and it shows the content of:
/catalog/includes/languages/english/index.php

how do I create:
/catalog/indexp2.php
to show the content of:
/catalog/includes/languages/english/indexp2.php


thanks,
steve
bill110
catalog/index.php is the page layout and makes calls to text that is found in catalog/includes/languages/english/index.php

You can copy the files as you described above and then make changes as you like but also remember to add a line in catalog/includes/filenames.php
define('FILENAME_INDEXP2', 'indexp2.php');
That way any calls to that page will be recognized.
A link to it would then be like this
CODE
<?php echo '<a href="' . tep_href_link(FILENAME_INDEXP2) . '">Your link text here'</a>' ?>
GemRock
I dont quite uhderstand what exactly you want to achieve. Anyway with your question of how to show /catalog/includes/languages/english/indexp2.php, in the index.php there is this line
CODE
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
, so in your /catalog/indexp2.php, you simply add or change it to:
CODE
require(DIR_WS_LANGUAGES . $language . '/' . 'index2.php';

assuming you provide a link to access catalog/index2.php in the first place.

Ken
stevemcl
what I want to achieve is to add some pages to my website that have the look and feel of osCommerce. I'd like to add a page 2 to the index.php file. and possibly another 'information' page that will show up in the 'information' box.
thanks, your answers help
-steve

QUOTE (GemRock @ Feb 9 2007, 12:38 PM) *
I dont quite uhderstand what exactly you want to achieve. Anyway with your question of how to show /catalog/includes/languages/english/indexp2.php, in the index.php there is this line
CODE
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
, so in your /catalog/indexp2.php, you simply add or change it to:
CODE
require(DIR_WS_LANGUAGES . $language . '/' . 'index2.php';

assuming you provide a link to access catalog/index2.php in the first place.

Ken
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.