Custom page title
Permalink Browser Info Environment
concrete5 supports setting custom page titles by using this code in page controllers:
with
$this->set('pageTitle', 'My Custom Title'); [code] if it's not set, concrete5 defaults to the current page name. BTW, the Pixel Theme always use the current page name. To fix this issue, it's enough to change the file /packages/theme_pixel/themes/pixel/elements/header.php, replacing [code] $title = $c->getCollectionName();
with
$title = isset($pageTitle) ? $pageTitle : $c->getCollectionName();
Type: | Discussion |
---|---|
Status: | Resolved |
You mean at the "header.php" one line 227?
I replaced it with your code and attached it to this topic. Is it correct?