Skip to content

Way to write a conditional for flatblocks? #23

Description

@deronsizemore

I'm using this code in my template:

        <div class="row pb-4">
            <div class="col text-center">
                {% flatblock "adbanner.above-content" %}
            </div>
        </div>

Of course, if the flatblock content area is empty, I don't want/need the partent div.row and div.col surrounding it. Is there any way to do something like this:

{% if flatblock "adbanner.above-content" %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions