Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

How do I add static content pages to osCMax?

Source: oscmax.com - Thanks to michael_s

There are four main steps to adding your own custom static content pages to osCMax. Follow the tutorial below to create a static page.

Step 1: Copy shipping.php

  • First, copy the shipping.php file in your main catalog directory.
  • Rename the copy to testpage.php. (testpage.php is an example - you should choose a more suitable name for your new page)

Step 2: Edit your new page

  • In testpage.php, edit the following variables:
  • FILENAME_SHIPPING –Change to→ FILENAME_TESTPAGE
  • CONTENT_SHIPPING –Change to→ CONTENT_STATIC
  • $content_template = TEMPLATENAME_SHIPPING; –Change to→ $content_template = TEMPLATENAME_STATIC;

There are two instances of FILENAME_TESTPAGE and one instance of CONTENT_TESTPAGE and one instance of $content_template

  • When you have changed all four definitions, save this file.

Step 3: Register the new filename

  • Open filenames.php which is in your catalog/includes directory and create the following variable definitions:

         define('CONTENT_TESTPAGE', 'testpage');
         define('FILENAME_TESTPAGE', 'testpage.php');

Alternatively the definition format could look like this define('FILENAME_TESTPAGE', TESTPAGE . '.php'); either method is OK.

  • Save this file.

Step 4: Create the new language file

  • Copy the file /catalog/includes/languages/english/shipping.php and rename it to testpage.php.
  • Edit the file /catalog/includes/languages/english/testpage.php to reflect your new page content.
  • Edit the regions between the inverted commas shown in this example as “New Created Static Page” and “This page tells…” to produce the content you want then save the file.

         define('NAVBAR_TITLE', 'New Created Static Page');
         define('HEADING_TITLE', 'New Created Static Page');
         define('TEXT_INFORMATION', 'This page tells you how to add a new static page
  to OSCMAX using the Template Structure.');

  • If you need to return to edit the new page you can find it here /catalog/includes/languages/english/testpage.php

Finished!

  • To see your new page in your browser use the following address format

                               http://yourcatalog.com/catalog/testpage.php 

  • Bookmark at
  • Bookmark "How do I add static content pages to osCMax?" at Digg
  • Bookmark "How do I add static content pages to osCMax?" at Furl
  • Bookmark "How do I add static content pages to osCMax?" at Reddit
  • Bookmark "How do I add static content pages to osCMax?" at Google
  • Bookmark "How do I add static content pages to osCMax?" at StumbleUpon
  • Bookmark "How do I add static content pages to osCMax?" at Technorati
  • Bookmark "How do I add static content pages to osCMax?" at Facebook
  • Bookmark "How do I add static content pages to osCMax?" at Twitter
  • Bookmark "How do I add static content pages to osCMax?" at Slashdot
adding_new_static_content_pages.txt · Last modified: 2009/10/30 13:14 (external edit)
You are here: startadding_new_static_content_pages
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0