Table of Contents

Adding New Dynamic Content Pages

I haven't got round to fully testing this yet but I believe it works! Quite alot of files require modifying, remember to backup your files first!!

This guide has been made for use with osCMax V2.0 or higher. Credit to author mhouchin.


1. Creating the pages for the front end

The following files changes need to be made in the catalog folders.

1.1 Copy shipping.php and rename to about.php

1.2 Open /includes/filenames.php

  define('CONTENT_ABOUT', 'about');
  define('CONTENT_ABOUT_CONTENT', 'about_content');
  define('FILENAME_ABOUT', CONTENT_ABOUT . '.php');
  define('FILENAME_ABOUT_CONTENT', CONTENT_ABOUT_CONTENT . '.php');

1.3 Copy includes/languages/english/shipping.php and rename to about.php

1.4 Copy includes/languages/english/shipping_content.php and rename to about_content.php

1.5 Copy templates/[templatename]/content/shipping.tpl.php and rename to about.tpl.php (you may need to copy this file from the fallback template first)

     <?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING_CONTENT); ?> 
and change it to:
     <?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_CONTENT); ?>

1.6 Open includes/configure_bts.php

     define('TEMPLATENAME_ABOUT', 'about.tpl.php');

1.7 Insert this wherever you want to link to the page put:

     <a href="<?php echo tep_href_link(FILENAME_ABOUT) ?>">ABOUT US</a>


2. Creating the pages in admin section

The following files changes need to be made in the admin folders.

2.1 Open /admin/index.php

Find:

array('title' => BOX_CATALOG_DEFINE_SHIPPING, 'link' => tep_href_link(FILENAME_DEFINE_SHIPPING, 'selected_box=catalog')),


2.2 Open /admin/includes/boxes/catalog.php

Find:

tep_admin_files_boxes(FILENAME_DEFINE_SHIPPING, BOX_CATALOG_DEFINE_SHIPPING) .


2.3 Copy admin/define_shipping.php and rename to define_about.php


2.4 Open admin/includes/languages/english.php

  define('BOX_CATALOG_DEFINE_ABOUT', 'About Page');


2.5 Open admin/includes/filenames.php

  define('FILENAME_DEFINE_ABOUT','define_about.php');
  define('FILENAME_DEFINE_ABOUT_CONTENT', 'about_content.php');



3. Enable access to the file

Add access to define_about.php in the administrator menu by enabling file access

Don't forget to set the Member Groups –> Groups –> New Permission