Skip to content

Instantly share code, notes, and snippets.

@rvizena
Created June 1, 2023 19:31
Show Gist options
  • Save rvizena/8c81d17371fee48e280e4e9b9f529487 to your computer and use it in GitHub Desktop.
Save rvizena/8c81d17371fee48e280e4e9b9f529487 to your computer and use it in GitHub Desktop.
Twig Boolean for show/hide paragraphs
{% if paragraph.field_hide_spotlight.value != 1 %}
<{{ outer_wrapper }}{{ attributes.addClass('ppl-spotlight-wrapper', 'ds-2col-stacked', 'clearfix') }}>
{{ title_suffix.contextual_links }}
<{{ header_wrapper }}{{ header_attributes.addClass('group-header') }}>
{{ header }}
</{{ header_wrapper }}>
<{{ left_wrapper }}{{ left_attributes.addClass('group-left') }}>
{{ left }}
</{{ left_wrapper }}>
<{{ right_wrapper }}{{ right_attributes.addClass('group-right') }}>
{{ right }}
</{{ right_wrapper }}>
<{{ footer_wrapper }}{{ footer_attributes.addClass('group-footer') }}>
{{ footer }}
</{{ footer_wrapper }}>
</{{ outer_wrapper }}>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment