mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #2407 support $CATEGORY in document title SEO
This commit is contained in:
parent
12af0905f8
commit
fc86ae24de
3 changed files with 4 additions and 2 deletions
|
|
@ -339,11 +339,13 @@ class BoardView extends Board
|
|||
Context::setCanonicalURL($oDocument->getPermanentUrl());
|
||||
$seo_title = config('seo.document_title') ?: '$SITE_TITLE - $DOCUMENT_TITLE';
|
||||
$seo_title = Context::replaceUserLang($seo_title);
|
||||
$category_list = Context::get('category_list');
|
||||
Context::setBrowserTitle($seo_title, array(
|
||||
'site_title' => Context::getSiteTitle(),
|
||||
'site_subtitle' => Context::getSiteSubtitle(),
|
||||
'subpage_title' => $this->module_info->browser_title,
|
||||
'document_title' => $oDocument->getTitleText(),
|
||||
'category' => ($oDocument->get('category_srl') && isset($category_list[$oDocument->get('category_srl')])) ? $category_list[$oDocument->get('category_srl')]->title : '',
|
||||
'page' => Context::get('page') ?: 1,
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue