3108 - Важно - удаление лишних разделов из sitemao.xml

parent eadbb7e9
......@@ -57,7 +57,7 @@ class DocContent extends \yii\db\ActiveRecord
},
'dataClosure' => function ($model) {
return [
'loc' => Url::to($model->url),
'loc' => $model->url,
'lastmod' => date('c', $model->updated_at),
'changefreq' => SitemapBehavior::CHANGEFREQ_DAILY,
'priority' => $model->priority
......
......@@ -32,7 +32,8 @@ return [
'models' => [
'common\modules\content\models\CoContent',
'common\modules\blog\models\Post',
'common\modules\faq\models\Faq'
'common\modules\faq\models\Faq',
'common\modules\documentation\models\DocContent',
],
'urls' => [
[
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment