Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Content Pages


dave111

Recommended Posts

Hey i'm pretty new to oscommerce, i installed STS and made a template seems to work fine ( http://www.xtreme-pc.org/junkyard/ ). I just want to know to add content pages, such as "about us" or "our location", i searched the forums but all the posts seemed to deal with adding pages to the "information" box, whereas i want the link to be in a navbar, not in the information box.

Can anyone help me out?

Remember i am a newbie to this so please make any help as easy to understand as possible.

 

~David

Link to comment
Share on other sites

David

 

This page might helpyou...

 

http://wiki.oscommerce.com/docsCatLinkBox

 

That will let you insert a link to another pge designed by you

 

I remeber a post from someone (or maybe a contribution) that was more detailed but allowed you to dupe an OsC page so it retained all the functionality of the site in the L & R columns but allowed you to put your own content in it.

Maybe a search of the forum or contributions would turn this up?

 

Cheers

 

Jos

===============

Simple yet Creative

Get Online Web Design : getonlinedesign.com

===============

Link to comment
Share on other sites

Thanks Jos but i want more than just a link to an external page, as you said i want the page to retain its functionality, but not be in the "information" box cartegory. I have searched the forums and contribs by they all seems to deal with added mores things to "information".

 

~David

Link to comment
Share on other sites

So you're looking to essentially duplicate the Information box but then use it for your own purposes to link to other pages in the OsC format that you've populated the body contents of?

 

Jos

===============

Simple yet Creative

Get Online Web Design : getonlinedesign.com

===============

Link to comment
Share on other sites

I dont want to duplicate the information box, i want to duplicate the main home page and populate that main page with different content, and then have the links at the top in the navigation bar. Not in one of the infoboxes down the side.

Link to comment
Share on other sites

Dave

 

This is an edited version of a post by Vger - so credit goes to him on this one...

 

1. Most pages with content have two sources.

One page is in the root directory e.g. /catalog/conditions.php, and the other is in catalog/includes/languages/english/conditions.php

(conditions.php used as an example)

 

The page in the root directory inputs the header, footer, left column and right column, and echoes what you have put into the other file higher up the chain.

 

2. To make a new page, just open both of the files above, click 'save as' and save as the new (matching) page names.

In the file you've selected (I'm using conditions.php for this example), alter the line

 

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS);

to read

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEWFILENAME);

 

3. Add the new filename as a line to the file catalog/includes/filenames.php e.g.

  define('FILENAME_ABOUT_US', 'newfilename.php');

 

4. Add the page link to your navbar eg. www.yoursite.com/newfile.php

 

Bingo, you're all done!

 

Jos

===============

Simple yet Creative

Get Online Web Design : getonlinedesign.com

===============

Link to comment
Share on other sites

I dont want to duplicate the information box, i want to duplicate the main home page and populate that main page with different content, and then have the links at the top in the navigation bar. Not in one of the infoboxes down the side.

It is very easy to add links to pages when using sts. Go to your sts_display_output file in your includes folder and around line 230 you will see this

 

 

/////////////////////////////////////////////

////// Create custom boxes

/////////////////////////////////////////////

 

 

Just above it you will see where the $variables are set for the template system. You can make new one for your privacy page by adding this

 

$template['privacy'] = '<a href=' . tep_href_link(FILENAME_PRIVACY) . ' class="headerNavigation">' . tep_image(DIR_WS_IMAGES . 'privacy.gif', 'Privacy Policies') . '</a>';

 

Now you can use $privacy to place a link anywhere you want to your privacy page using a button. I have done this for all the links in the information box and done away with it altogether and put them across the top.

 

Now if you want to create new pages just copy the info from an existing page and rename it like was mentioned in an earlier post and change the names in the line above to match.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...