Magento News
Magento create new field type for admin module
in a custom module with admin pages, in the file
appcodelocalNamespaceMymodulwBlockMyblockEditTabForm.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 i can make something like this
$fieldset->addField('title', 'mytype', array(
'label' => Mage::helper('mymodule')->__('Title'),
'class' => 'required-entry',
'required' => true,
'name' => 'title',
));
can you see the diference??
thanks
Magento create new field type for admin module
Possibly Related Posts:
- Magento – ‘proceed to checkout’ button to go to login page if not logged in
- magento geolocation redirect
- Magento Post Image File Request
- How to get items from last order on login and clearing cart on logout?
- Fatal error Undefined class constant ‘METHOD_GUEST’ [Magento]
RSS Feed