added the possibility to easily customize the template of just one widget of a form (PHP edition)
This commit is contained in:
parent
a204aec08b
commit
3a36c08d8e
@ -101,7 +101,9 @@ class FormHelper extends Helper
|
|||||||
{
|
{
|
||||||
$template = null;
|
$template = null;
|
||||||
$blocks = $view->get('types');
|
$blocks = $view->get('types');
|
||||||
|
if ('widget' === $section || 'row' === $section) {
|
||||||
|
array_unshift($blocks, '_'.$view->get('id'));
|
||||||
|
}
|
||||||
foreach ($blocks as &$block) {
|
foreach ($blocks as &$block) {
|
||||||
$block = $block.'_'.$section;
|
$block = $block.'_'.$section;
|
||||||
$template = $this->lookupTemplate($block);
|
$template = $this->lookupTemplate($block);
|
||||||
|
Reference in New Issue
Block a user