Anyone know about osCMS

Discussion in 'PHP' started by jWebXpress, Dec 4, 2007.

  1. #1
    I am trying to implement this snippet which pulls text from the database

    Original looks like this:

    <?php

    define('NAVBAR_TITLE', 'Terms & Conditions');
    define('HEADING_TITLE', 'Terms & Conditions');

    define('TEXT_INFORMATION', 'This is the sample text');
    ?>

    I am supposed to add this:
    <?php echo tep_get_cms_content('IndexPageMainText'); ?>

    In place of the text that says "This is the sample text", but when I do, all I get is a blank page.

    Anyone know why?

    EDIT:
    I figured it out:
    define('TEXT_INFORMATION',tep_get_cms_content('FrontPageContent'));

    Thanks anyway!
     
    jWebXpress, Dec 4, 2007 IP