diff --git a/Classes/Components/LineList.php b/Classes/Components/LineList.php index 7b6267f..82127c9 100644 --- a/Classes/Components/LineList.php +++ b/Classes/Components/LineList.php @@ -34,9 +34,11 @@ public function render(){ $contentTypeService = $this->controller->getRepository()->getContentTypeService(); $contentType = $contentTypeService->loadContentType($location->contentInfo->contentTypeId); - - $classes = $this->controller->getContainer()->getParameter('project.list.' . $contentType->identifier); - + if($this->controller->getContainer()->hasParameter('project.list.' . $contentType->identifier)){ + $classes = $this->controller->getContainer()->getParameter('project.list.' . $contentType->identifier); + } else { + return $response->setContent(''); + } $query = new Query(); $query->criterion = new LogicalAnd( diff --git a/NOTES.md b/NOTES.md index 4ac030d..f016413 100644 --- a/NOTES.md +++ b/NOTES.md @@ -1,10 +1,8 @@ TODO: - - Improve gallery template; - Improve content generation on install; - Improve pagination; - Review and improve templates; - Review and improve cache; - - Optimize code; - Release version 2.0. ######################### diff --git a/Resources/config/ezpublish.yml b/Resources/config/ezpublish.yml index 6677953..3e0263e 100644 --- a/Resources/config/ezpublish.yml +++ b/Resources/config/ezpublish.yml @@ -71,4 +71,10 @@ system: default: template: "TuteiBaseBundle:content/default:block.html.twig" match: - UrlAlias: "/" \ No newline at end of file + UrlAlias: "/" + content_view: + line: + image: + template: "TuteiBaseBundle:content/image:content_line.html.twig" + match: + Identifier\ContentType: [image] \ No newline at end of file diff --git a/Resources/views/content/article/full.html.twig b/Resources/views/content/article/full.html.twig index dd5c68a..25da754 100644 --- a/Resources/views/content/article/full.html.twig +++ b/Resources/views/content/article/full.html.twig @@ -5,30 +5,37 @@ {% set language = (siteaccess[ezpublish.siteaccess.name].language) %}