Magento: Adminhtml form “Image” Field
I have set an input field of type “Image” in an admin form using the code below: <?php // Tab Form // File: app/code/local/MyCompany/Mymodule/Block/Adminhtml/Items/Edit/Tab/Form.php class MyCompany_Mymodule_Block_Adminhtml_Items_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form { protected function _prepareForm() { $form = new Varien_Data_Form(); $this->setForm($form); $fieldset = $form->addFieldset('mymodule_form', array('legend'=>Mage::helper('mymodule')->__('Item information'))); $fieldset->addField('photo', 'image', array( 'label' => Mage::helper('mymodule')->__('Photo'), 'required' =
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.