How to call all static page in Magento?
If you want to show all static pages in Magento Menu or any Landing Page. Just below Code copy and paste. Hope so it will work. If you have any query please comments.
<div>
<?php $collection = Mage::getModel(‘cms/page’)->getCollection() ->addStoreFilter(Mage::app()->getStore()->getId());?>
<?php $collection->getSelect()
->where(‘is_active = 1’); ?>
<ul>
<?php foreach ($collection as $page): ?>
<?php $PageData = $page->getData(); ?>
<?php if($PageData[‘identifier’]!=’no-route’) { ?>
<li>
<a href=”/<?php echo $PageData[‘identifier’]?>”><?php echo $PageData[‘title’] ?></a>
</li>
<?php } ?>
<?php endforeach; ?>
</div>