Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do we add new content pages?


stevemcl

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...