stevemcl Posted February 9, 2007 Share Posted February 9, 2007 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 Link to comment Share on other sites More sharing options...
bill110 Posted February 9, 2007 Share Posted February 9, 2007 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 <?php echo '<a href="' . tep_href_link(FILENAME_INDEXP2) . '">Your link text here'</a>' ?> My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
GemRock Posted February 9, 2007 Share Posted February 9, 2007 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 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); , so in your /catalog/indexp2.php, you simply add or change it to: require(DIR_WS_LANGUAGES . $language . '/' . 'index2.php'; assuming you provide a link to access catalog/index2.php in the first place. Ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
stevemcl Posted February 10, 2007 Author Share Posted February 10, 2007 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 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 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); , so in your /catalog/indexp2.php, you simply add or change it to: require(DIR_WS_LANGUAGES . $language . '/' . 'index2.php'; assuming you provide a link to access catalog/index2.php in the first place. Ken Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.