Admin Form Field Types
Posted Over 11 years ago. Visible to the public. Linked content.
The various types are:
- text
- textarea
- multiline
- select
- multiselect
- radio
- checkbox
- password
- time
- note
- label
- link
- image
- file
- date
- submit
See the link for detailed usage information
Last edit
Over 10 years ago
Related cards:
Add comment to form input in admin
$afterElementHtml = '<p class="nm"><small>' . ' this is the hint! ' . '</small></p>';
$linkFieldset->addField('field_name', 'text', array(
'after_element_html' => $afterElementHtml,
));
![](http://mikewhitby.co.uk/makandra-tr...
Admin - Creating A Basic Grid And Edit Form
Much easier to show how this is done by showing you some code examples, so please see the link attached.
Add A Tab To The Admin Product Screen
Declare an admin layout XML file for your module in your config.xml
:
<config>
<adminhtml>
<layout>
<updates>
<your_module>
<file>your-module.xml</file>
...
Config Controller Definition (Frontend & Admin)
Frontend With Route:
<config>
<frontend>
<routers>
<namespace_module>
<use>standard</use>
<args>
<module>Namespace_Module</module>
...
Config Layout Definition (Frontend & Admin)
Frontend:
<config>
<frontend>
<layout>
<updates>
<namespace_module>
<file>namespace-module.xml</file>
</namespace_module>
</up...
Boilerplate Admin Controller
/**
* Yourcompany.com
*
* PHP Version 5
*
* @category Namespace
* @package Namespace_Module
* @author Your Name <your.name@yourcompany.com>
* @copyright 2012 yourcompany.com
* @license http:...
Product Types
Type | Composite[^1] | Inventory[^2] | Description | Example |
---|---|---|---|---|
Simple | - | Yes | The most basic form of product | Example |
Grouped | Yes | No | Several simple products displ... |
Formatting A Price For The Current Locale
$price = 500;
$formattedPrice = Mage::helper('core')->currency($price, true, false);
Custom Admin Grid Column Renderer
When you need to display an image in a column, or format a value in a particular way, you can use a custom renderer to present the data differently.
Posted by Mike Whitby to Magento (2012-11-28 10:31)