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!!

I have made this guide using OscMax V2.0

For this example I am going to create about.php

1.0 - Creating the pages for the front end

1.1 - Copy shipping.php and rename to about.php

1.2 - about.php

Change all references of _SHIPPING to _ABOUT

1.3 - /includes/filenames.php

Add the following definitions:

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.4 - Copy includes/languages/english/shipping.php and rename to about.php

1.5 - includes/languages/english/about.php

Change relevant information

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

1.7 - Copy templates/[templatename]/content/shipping.tpl.php and rename to about.tpl.php (may need to copy first from fallback template)

1.8 - templates/[templatename]/content/about.tpl.php

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

1.9 - includes/configure_bts.php

Add the following definition:

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

2.0 - Link to the page: <a href=”<?php echo tep_href_link(FILENAME_ABOUT) ?>”>ABOUT US</a>

3.0 - Creating the pages in admin section

3.1 - /admin/index.php

Find: array('title' ⇒ BOX_CATALOG_DEFINE_SHIPPING, 'link' ⇒ tep_href_link(FILENAME_DEFINE_SHIPPING, 'selected_box=catalog')),

And duplicate it for each page you want to add, modifying SHIPPING to ABOUT

3.2 - /admin/includes/boxes/catalog.php

Find: tep_admin_files_boxes(FILENAME_DEFINE_SHIPPING, BOX_CATALOG_DEFINE_SHIPPING) .

And duplicate it for each page you want to add, modifying SHIPPING to ABOUT

3.3 - Copy admin/define_shipping.php and rename to define_about.php

Change all references of SHIPPING to ABOUT

3.4 - admin/includes/languages/english.php

Add the following definition:

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

3.5 - admin/includes/filenames.php

Add the following definition:

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

3.6 - add access to define_about.php in the administrator menu

 
adding_new_dynamic_content_pages.txt · Last modified: 2008/01/22 09:21 by mhouchin
osCMax Templates - Loyalty Discount
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki