B-219 Sec-55 Noida, India
+918010221733

Magento pages in a drop down (html select box).

below is the code to show magento pages in a drop down box

<select name=”page”>
<?php foreach (Mage::getResourceModel(‘cms/page_collection’) as $page){ ?>
<option value=”<?php echo $page->getId() ?>”><?php echo $page->getTitle() ?></option>
<?php } ?>
</select>

(Visited 37 times, 1 visits today)

Leave a reply