Browse Source

Page meta fix

master
Egorka 6 years ago
parent
commit
b64dd67220
  1. 4
      common/modules/pages/views/page/view.php

4
common/modules/pages/views/page/view.php

@ -7,8 +7,8 @@ use yii\helpers\Html;
$this->title = $page->getSeoTitle();
$this->registerMetaTag(['name' => 'description', 'content' => $page->meta->description]);
$this->registerMetaTag(['name' => 'keywords', 'content' => $page->meta->keywords]);
$this->registerMetaTag(['name' => 'description', 'content' => $page->translation->meta_description]);
$this->registerMetaTag(['name' => 'keywords', 'content' => $page->translation->meta_keywords]);
foreach ($page->parents as $parent) {
if (!$parent->isRoot()) {

Loading…
Cancel
Save