Magento create new field type for admin module

payork

New Member
in a custom module with admin pages, in the file
app\code\local\Namespace\Mymodulw\Block\Myblock\Edit\Tab\Form.phpyou can add somthing like this \[code\]$fieldset->addField('title', 'text', array( 'label' => Mage::helper('mymodule')->__('Title'), 'class' => 'required-entry', 'required' => true, 'name' => 'title', ));\[/code\]this create an input of type text in the edit page, what i'm trying to do is create a new type, then i can make something like this\[code\]$fieldset->addField('title', 'mytype', array( 'label' => Mage::helper('mymodule')->__('Title'), 'class' => 'required-entry', 'required' => true, 'name' => 'title', ));\[/code\]can you see the diference??thanks
 
Back
Top