cg view title, meta

This commit is contained in:
2024-12-12 14:06:47 +03:00
parent f7253bafe9
commit 9c77403a71
3 changed files with 37 additions and 3 deletions

View File

@ -3,6 +3,7 @@
/**
* @var \Illuminate\Database\Eloquent\Collection $contents
* @var int $page_number
* @var \kernel\CgView $view
*/
use kernel\modules\post\models\Post;
@ -21,6 +22,11 @@ $table = new ListEloquentTable(new EloquentDataProvider(Post::class, [
'baseUrl' => "/admin/post"
]));
$view->setTitle("Список постов");
$view->setMeta([
'description' => 'Список постов системы'
]);
$entityRelation = new \kernel\EntityRelation();
$additionals = $entityRelation->getEntityRelationsBySlug("post");