When template "none" is used in a webpage layout, then the contents of the page should be the sole output, with no other code before or after the page element content.

This commit is contained in:
Andrew Manning 2017-04-23 21:22:40 -04:00
parent bda9a833ba
commit 8ad2b3e7a1
2 changed files with 10 additions and 0 deletions

View file

@ -1541,6 +1541,15 @@ function prepare_page($item) {
// the template will get passed an unobscured title.
$body = prepare_body($item, true);
if(App::$page['template'] == 'none') {
$tpl = 'page_display_empty.tpl';
return replace_macros(get_markup_template($tpl), array(
'$body' => $body['html']
));
}
$tpl = get_pconfig($item['uid'], 'system', 'pagetemplate');
if (! $tpl)
$tpl = 'page_display.tpl';

View file

@ -0,0 +1 @@
{{$body}}