Twig slot condition

Created on 13 March 2025, 2 months ago

Problem/Motivation

In twig, making a condition on a slot that contain an empty component is never false.

Steps to reproduce

{% if content %}
    <div class="richText">
      {{ content }} // this include a component with empty slots
    </div>
{% endif %}
give in hte markup :
<code>
<!-- πŸ₯™ Component start: vivalto:text --><!--start text --><!--end text --><!-- πŸ₯™ Component end: vivalto:text -->

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France fb-multimedia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024