diff --git a/e107_core/templates/header_default.php b/e107_core/templates/header_default.php index adb7e775a..6b3b7ea0a 100644 --- a/e107_core/templates/header_default.php +++ b/e107_core/templates/header_default.php @@ -571,7 +571,8 @@ echo "\n"; $body_onload = " style='padding:15px;margin:0px'"; //TODO e-iframe css class. } - + $HEADER = str_replace("{e_PAGETITLE}",deftrue('e_PAGETITLE',''),$HEADER); + if(!deftrue('BODYTAG')) //TODO Discuss a better way? { diff --git a/e107_themes/bootstrap/theme.php b/e107_themes/bootstrap/theme.php index 2409a5c1f..17d716b99 100644 --- a/e107_themes/bootstrap/theme.php +++ b/e107_themes/bootstrap/theme.php @@ -416,7 +416,7 @@ $HEADER['docs'] = <<
-

Documentation

+

{e_PAGETITLE}

How to get started..

diff --git a/page.php b/page.php index 0c7f97921..7a5e14fb5 100644 --- a/page.php +++ b/page.php @@ -48,8 +48,6 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter { $e107CorePage->setRequest('listPages'); - require_once(HEADERF); - if($_GET['action']=='all') // See bootstrap 'docs' layout for an example. { $template = array(); @@ -63,6 +61,7 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter '; $template['end'] = ''; + define('e_PAGETITLE', 'Documentation'); //FIXME - grab from selected chapter. } else { @@ -71,7 +70,7 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter $template['item'] = "
  • {CPAGETITLE}
  • "; $template['end'] = ""; } - + require_once(HEADERF); $text = $e107CorePage->listPages($_GET['ch'],$template); $ns->tablerender('', $text, 'cpage'); // TODO FIXME Caption eg. "book title"