Metatag fixes, front end description work
This commit is contained in:
parent
d09f49ed24
commit
2907e95d6b
13 changed files with 48 additions and 15 deletions
|
|
@ -38,6 +38,7 @@ final class BrainPageController extends AbstractController
|
|||
|
||||
$page->setTitle($data->getTitle());
|
||||
$page->setText($data->getText());
|
||||
$page->setDescription($data->getDescription());
|
||||
$page->setUrl($data->getUrl());
|
||||
|
||||
if ($data->isPublished()) {
|
||||
|
|
@ -73,6 +74,7 @@ final class BrainPageController extends AbstractController
|
|||
$data = $form->getData();
|
||||
|
||||
$page->setTitle($data->getTitle());
|
||||
$page->setDescription($data->getDescription());
|
||||
$page->setText($data->getText());
|
||||
$page->setUrl($data->getUrl());
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ final class BrainPhotosController extends AbstractController
|
|||
|
||||
$photos->setTitle($data->getTitle());
|
||||
$photos->setDate($data->getDate());
|
||||
$photos->setDescription($data->getDescription());
|
||||
$photos->setText($data->getText());
|
||||
$photos->setUrl($data->getUrl());
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ final class BrainPostController extends AbstractController
|
|||
|
||||
$post->setTitle($data->getTitle());
|
||||
$post->setDate($data->getDate());
|
||||
$post->setDescription($data->getDescription());
|
||||
$post->setText($data->getText());
|
||||
$post->setUrl($data->getUrl());
|
||||
|
||||
|
|
@ -102,6 +103,7 @@ final class BrainPostController extends AbstractController
|
|||
|
||||
$post->setTitle($data->getTitle());
|
||||
$post->setDate($data->getDate());
|
||||
$post->setDescription($data->getDescription());
|
||||
$post->setText($data->getText());
|
||||
$post->setUrl($data->getUrl());
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ final class PhotosController extends AbstractController
|
|||
'description' => $photos->getDescription(),
|
||||
'date' => $photos->getDate(),
|
||||
'thumbnail' => '/files/uploads/photos/' . strtolower(str_replace(' ', '_', $photos->getTitle())) . '/' . $photos->getThumbnail(),
|
||||
'url' => $photos->getUrl(),
|
||||
];
|
||||
|
||||
foreach ($uploads as $index => $upload) {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ final class PostController extends AbstractController
|
|||
'title' => $post->getTitle(),
|
||||
'category' => $post->getCategory()->getTitle(),
|
||||
'urlSafeCategory' => $post->getCategory()->getUrlSafeTitle(),
|
||||
'description' => $post->getDescription(),
|
||||
'date' => $post->getDate(),
|
||||
'url' => $post->getUrl()
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue