Code for calling CMS Page in phtml file in Magento - Magesan

Code for calling CMS Page in phtml file in Magento

Code for calling CMS Page in phtml file in Magento

<?php $Cms = Mage::getModel('cms/page')->load('insert_your_identifier_here', 'identifier'); ?>
    <?php if($Cms['is_active']) : ?>
        <li role="presentation"<?php echo ($_last ? ' class="last"' : '') ?>>
            <a href="<?php echo $this->getUrl('insert_your_identifier_here'); ?>">
                <?php echo $Cms->getTitle(); ?>
            </a>
        </li>
    <?php endif; ?>

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>