Custom page title

Permalink Browser Info Environment
concrete5 supports setting custom page titles by using this code in page controllers:

$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
mlocati
View Replies:
shahroq replied on at Permalink Reply 1 Attachment
shahroq
Hi Michele,
You mean at the "header.php" one line 227?
I replaced it with your code and attached it to this topic. Is it correct?
mlocati replied on at Permalink Reply
mlocati
Yes. I've seen that you already fixed it, thanks!

concrete5 Environment Information

n/a

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.