templating inside a generated form helps creating complex form layouts
template
This one is a special element type: it's a template (a "container")
for displaying other elements in a special way. It's great if you
want to display a group of checkboxes for example - check the live
example! Please note, that the value of this element is NOT returned
by $clonefish->getElementValues().
- Live examples:
- Definition:
<php $config = Array( 'id' => Array( 'type' => 'template', 'value' => '<table>' . '%newslettercheckbox%' . '%confirmcheckbox%' . '%marketingcheckbox%' . '</table>' . ) ); ?>
newslettercheckbox,
confirmcheckbox,
marketingcheckbox are already defined,
and they have inherited the form 'element' layout setting
of a tabular form layout, which is a table row.
