1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Support for {e_PAGETITLE} usage in $HEADER.

This commit is contained in:
Cameron
2013-05-29 01:42:35 -07:00
parent af518f8dc1
commit ce939d1fff
3 changed files with 5 additions and 5 deletions

View File

@@ -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
</section>
';
$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'] = "<li><a href='{CPAGEURL}'>{CPAGETITLE}</a></li>";
$template['end'] = "</ul>";
}
require_once(HEADERF);
$text = $e107CorePage->listPages($_GET['ch'],$template);
$ns->tablerender('', $text, 'cpage'); // TODO FIXME Caption eg. "book title"