Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to write a conditional for flatblocks? #23

Open
deronsizemore opened this issue Jan 2, 2019 · 1 comment
Open

Way to write a conditional for flatblocks? #23

deronsizemore opened this issue Jan 2, 2019 · 1 comment
Labels

Comments

@deronsizemore
Copy link

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" %}

@zodman
Copy link
Member

zodman commented Dec 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants