I have modified the code from Magento static pages menu a little bit to include a class for the active menu link. <div> <?php $collection = Mage::getModel(‘cms/page’)->getCollection()->addStoreFilter(Mage::app()->getStore()->getId());?> <?php $collection->getSelect() ->where(‘is_active = 1′); ?> <ul id=”nav-top-list”> <?php foreach ($collection as $page): ?> <?php $PageData = $page->getData(); ?> <?php if($PageData['menu']!= ‘false’) { ?> <li> <a href=”/<?php echo [...]
Archive: text array
Posts Tagged ‘text array’
January 21, 2011
No Comments
September 10, 2010
No Comments
in a custom module with admin pages, in the file app\code\local\Namespace\Mymodulw\Block\Myblock\Edit\Tab\Form.php you can add somthing like this $fieldset->addField(‘title’, ‘text’, array( ‘label’ => Mage::helper(‘mymodule’)->__(‘Title’), ‘class’ => ‘required-entry’, ‘required’ => true, ‘name’ => ‘title’, )); this create an input of type text in the edit page, what i’m trying to do is create a new type, then [...]
Categories:
Archive by date: