<?php $collection = Mage::getModel('cms/page')->getCollection()->addStoreFilter(Mage::app()->getStore()->getId());?>

<?php  $collection->getSelect()

->where('is_active = 1'); ?>

<ul id="nav">

<?php foreach ($collection as $page): ?>

<?php $PageData = $page->getData(); ?>

<?php// print_r($PageData);?>

<?php if($PageData&#91;'identifier'&#93;!='no-route' && $PageData&#91;'identifier'&#93;!='enable-cookies' && $PageData&#91;'identifier'&#93;!='home2') { ?>

<li>

<a href="<?php echo $this->getUrl('').$PageData['identifier']?>"><span><?php echo $PageData&#91;'title'&#93; ?></span></a>

</li>

<?php } ?>

<?php endforeach; ?>

</ul>

Categories: Magento

0 Comments

Leave a Reply

Avatar placeholder

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