Skip to content
Permalink
Browse files

Do not render layout when rendering selection and relation items (#2205)

  • Loading branch information...
emodric authored and andrerom committed Oct 3, 2018
1 parent 73d0544 commit 12d052530cb4ea4f1c192198ba1e107714982407
@@ -266,7 +266,7 @@
<ul {{ block( 'field_attributes' ) }}>
{% for contentId in field.value.destinationContentIds if parameters.available[contentId] %}
<li>
{{ render( controller( "ez_content:viewAction", {'contentId': contentId, 'viewType': 'embed', 'noLayout': 1} ) ) }}
{{ render( controller( "ez_content:viewAction", {'contentId': contentId, 'viewType': 'embed', 'layout': false} ) ) }}
</li>
{% endfor %}
</ul>
@@ -331,7 +331,7 @@
{% if parameters.showInfo is defined and not parameters.showInfo %}
{% set showInfo = false %}
{% endif %}

{% set draggable = defaultDraggable %}
{% if parameters.draggable is defined and not parameters.draggable %}
{% set draggable = 'false' %}
@@ -436,7 +436,7 @@
{% spaceless %}
{% if not ez_is_field_empty( content, field ) and parameters.available %}
<div {{ block( 'field_attributes' ) }}>
{{ render( controller( "ez_content:viewAction", {'contentId': field.value.destinationContentId, 'viewType': 'text_linked', 'noLayout': 1} ) ) }}
{{ render( controller( "ez_content:viewAction", {'contentId': field.value.destinationContentId, 'viewType': 'text_linked', 'layout': false} ) ) }}
</div>
{% endif %}
{% endspaceless %}
@@ -338,7 +338,7 @@
<div class="ez-fielddefinition-setting-name">Selection root:</div>
<div class="ez-fielddefinition-setting-value">
{% if rootLocationId %}
{{ render( controller( "ez_content:viewAction", {'locationId': rootLocationId, 'viewType': 'line'} ), {'strategy': 'esi'}) }}
{{ render( controller( "ez_content:viewAction", {'locationId': rootLocationId, 'viewType': 'line', 'layout': false} ), {'strategy': 'esi'}) }}
{% else %}
<em>No defined root</em>
{% endif %}

0 comments on commit 12d0525

Please sign in to comment.
You can’t perform that action at this time.