diff --git a/app/templates/Standard/add-edit-view.php b/app/templates/Standard/add-edit-view.php index 6db60a260..8925cddf8 100644 --- a/app/templates/Standard/add-edit-view.php +++ b/app/templates/Standard/add-edit-view.php @@ -61,26 +61,16 @@ // the fields (which would be more consistent with how Views render...) $flashArgs['vv_banners'] = $banners; } -?> - -
- +// If subnavigation is present a supertitle and the subnavigation will be placed above +// the normal page title. The flash messages will be shown up there as well. +if(!empty($subnav)) { + // Include the $flashArgs for the subnavigation element + $subnav['flashArgs'] = $flashArgs; + // Generate the subnavigation title and tabs + print $this->element('subnavigation', $subnav); +} +?>