Skip to content

Commit

Permalink
DEMO-151: Implement About Full View (ezsystems#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainGuittard authored and damianz5 committed Mar 21, 2018
1 parent 0dea69d commit c6e7a6f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
32 changes: 32 additions & 0 deletions app/Resources/views/themes/tastefulplanet/full/about.html.twig
@@ -0,0 +1,32 @@
{% extends "@ezdesign/pagelayout.html.twig" %}

{% block page_head %}
{% set title = ez_content_name(content) %}
{{ parent() }}
{% endblock %}

{% block content %}
<section class="content-type-article full-view">
<div class="banner-image">
<div class="thumbnail text-center">
{{ ez_render_field(content, 'image', {
'parameters': {'alias': 'original', 'class': 'img-fluid w-100'}
}) }}
<div class="title">
<h1 class="field-title">{{ ez_render_field(content, 'title') }}</h1>
</div>
</div>
</div>

<div class="container">
<div class="row justify-content-between">
<div class="col-md-5">
{{ ez_render_field(content, 'left_column') }}
</div>
<div class="col-md-5">
{{ ez_render_field(content, 'right_column') }}
</div>
</div>
</div>
</section>
{% endblock %}
2 changes: 1 addition & 1 deletion app/config/default_parameters.yml
Expand Up @@ -84,7 +84,7 @@ parameters:

# Top menu parameters
app.top_menu.parent_location_id: 2
app.top_menu.includedContentTypeIdentifier: ["folder", "article", "place_list", "blog"]
app.top_menu.includedContentTypeIdentifier: ["folder", "article", "place_list", "blog", "about"]

# locationIds used for fetching items on home page
app.home.place_list_location_id: 219
Expand Down
5 changes: 5 additions & 0 deletions app/config/views.yml
Expand Up @@ -83,6 +83,11 @@ ezpublish:
match:
Identifier\ContentType: [subscribe]

about:
template: "@ezdesign/full/about.html.twig"
match:
Identifier\ContentType: [about]

product:
template: "@ezdesign/full/product.html.twig"
match:
Expand Down

0 comments on commit c6e7a6f

Please sign in to comment.