{% if ez_field(content, 'image') and not ez_is_field_empty(content, 'image') %}
{{ ez_render_field(content, 'image', {
'parameters': {
- 'alias': 'search_result_item'
+ 'alias': 'search_result_item',
+ 'class': 'w-100'
}
}) }}
diff --git a/app/Resources/views/themes/tastefulplanet/search_result_item/place.html.twig b/app/Resources/views/themes/tastefulplanet/search_result_item/place.html.twig
new file mode 100644
index 00000000..00885e94
--- /dev/null
+++ b/app/Resources/views/themes/tastefulplanet/search_result_item/place.html.twig
@@ -0,0 +1,43 @@
+{% block content %}
+ {% set url = path(location) %}
+ {% set name = ez_content_name(content) %}
+
+
+
+
+
+
+ {{ ez_render_field(content, 'intro') }}
+
+
+
+
+{% endblock %}
diff --git a/app/Resources/views/themes/tastefulplanet/search_result_item/product.html.twig b/app/Resources/views/themes/tastefulplanet/search_result_item/product.html.twig
new file mode 100644
index 00000000..1f87975e
--- /dev/null
+++ b/app/Resources/views/themes/tastefulplanet/search_result_item/product.html.twig
@@ -0,0 +1,43 @@
+{% block content %}
+ {% set url = path(location) %}
+ {% set title = ez_content_name(content) %}
+
+
+
+
+
+
+ {{ ez_render_field(content, 'description') }}
+
+
+
+
+{% endblock %}
diff --git a/app/config/ezplatform.yml b/app/config/ezplatform.yml
index a1e1f9e4..4578359f 100644
--- a/app/config/ezplatform.yml
+++ b/app/config/ezplatform.yml
@@ -67,7 +67,7 @@ ezpublish:
default_ttl: '%httpcache_default_ttl%'
http_cache:
purge_servers: ['%purge_server%']
- design: main
+ design: admin
site:
languages:
- eng-GB
@@ -90,6 +90,7 @@ ezpublish:
ezdesign:
design_list:
main: [tastefulplanet]
+ admin: [admin, tastefulplanet]
assetic:
assets:
@@ -107,3 +108,4 @@ assetic:
- 'assets/css/blog.css'
- 'assets/css/blog_post.css'
- 'assets/css/subscribe.css'
+ - 'assets/css/tags.css'
diff --git a/app/config/views.yml b/app/config/views.yml
index 39973d1e..0ea09842 100644
--- a/app/config/views.yml
+++ b/app/config/views.yml
@@ -3,6 +3,9 @@ ezpublish:
site_group:
pagelayout: "@ezdesign/pagelayout.html.twig"
+ field_templates:
+ - {template: "@ezdesign/fields/eztags_field.html.twig", priority: 20}
+
user:
layout: "@ezdesign/pagelayout.html.twig"
login_template: "@ezdesign/user/login.html.twig"
@@ -136,6 +139,22 @@ ezpublish:
Identifier\ContentType: [article]
search_result_item:
+ article:
+ template: "@ezdesign/search_result_item/article.html.twig"
+ match:
+ Identifier\ContentType: [article]
+ place:
+ template: "@ezdesign/search_result_item/place.html.twig"
+ match:
+ Identifier\ContentType: [place]
+ product:
+ template: "@ezdesign/search_result_item/product.html.twig"
+ match:
+ Identifier\ContentType: [product]
+ blog_post:
+ template: "@ezdesign/search_result_item/default.html.twig"
+ match:
+ Identifier\ContentType: [blog_post]
default:
template: "@ezdesign/search_result_item/default.html.twig"
match:
diff --git a/web/assets/css/tags.css b/web/assets/css/tags.css
new file mode 100644
index 00000000..9487d5d1
--- /dev/null
+++ b/web/assets/css/tags.css
@@ -0,0 +1,82 @@
+.tags-content {
+ margin-bottom: 80px;
+}
+
+.tags-content .attribute-header h1 {
+ font-size: 25px;
+ border-bottom: 1px solid #979797;
+ padding-bottom: 25px;
+ padding-top: 25px;
+}
+
+.search-result-item .item {
+ background: #fff;
+ align-items: center;
+ margin-top: 20px;
+ width: 100%;
+ padding-bottom: 0;
+ min-height: initial;
+ margin-left: 0;
+}
+
+.search-result-item .item .item-info {
+ display: flex;
+ flex-direction: column;
+ padding-top: 15px;
+ padding-bottom: 15px;
+}
+
+.search-result-item .item .item-name h2,
+.search-result-item .item .item-title h2 {
+ margin-bottom: 20px;
+}
+
+.search-result-item .item .item-intro,
+.search-result-item .item .item-description {
+ font-size: 16px;
+ height: 100%;
+ display: flex;
+}
+
+.search-result-item .item .item-intro div,
+.search-result-item .item .item-description div {
+ align-self: center;
+}
+
+.search-result-item .item .item-intro p,
+.search-result-item .item .item-description p {
+ margin: 0;
+}
+
+.search-result-item .item .item-image {
+ padding: 20px;
+}
+
+.search-result-item .item .item-image .ezimage-field {
+ margin: 0;
+}
+
+.search-result-item .item .item-image img {
+ position: relative;
+ float: right;
+}
+
+.content-type-article .field-tags,
+.content-type-blog-post .field-tags,
+.content-type-place .field-tags {
+ font-size: 22px;
+ text-align: center;
+ margin-bottom: 100px;
+}
+
+.field-tags .badge-light {
+ border: 2px solid #ccc;
+ background: #fff;
+ color: #ccc;
+ font-weight: 400;
+}
+
+.field-tags .badge-light:hover,
+.field-tags .badge-light:focus {
+ background: #ccc;
+}
\ No newline at end of file