- Create file 'Content.php' under app/code/local/Varien/Data/Form/Element/
- In Yourform.php block add another form field using
$fieldset->addField("name-of-field","content", array());
This form element accepts several parameters:
label
- this will define the field nameblock
- you can display grids/containers/tabs/anything you wanttemplate
- it even supports templates in case you want to overwrite the block'stoHtml
outputparams
- in case you want to parse parameters from your form to your block/template files. Use$this->getParams()
to get'emafter_element_html
- this will output html content after your block was rendered
- Carefull what you're displaying because form inputs will be submitted on save. Make sure your inputs don't have the same name as the current form inputs.
- When using grids, make sure they are ajax ready. Use renderers to display form inputs. If you are using filters, make sure filter input names are not the same with the rest of the form.
- When displaying custom content that requires some JS/CSS to run (eg. Dialogs/Editors) include them in your form xml.