Instructions:
{%- id section_id = prefix:'Related_Services_Section_' -%}Related_Services_Section_ to a unique, descriptive name (e.g., Hero_Banner_Section_, Team_Section_).{% if entity.REPLACE.on %}REPLACE with the correct field name from your custom fields (for example, show_section).FieldID (like "show_section") matches the field name you used in the snippet (entity.show_section.on).
{%- var section_class = section_class | default:"py-7 text-bg-light" -%}
{%- id section_id = prefix:'Related_Services_Section_' -%}
{% if entity.REPLACE.on %}
<section id="{{section_id}}" class="{{section_class}}">
<div class="container">
</div>
</section>
{% endif %}
{%- var image_preset = image_preset | default:"1200x675-crop" -%}
<img src="{%- image_url = image | preset:image_preset -%}"
alt="{{ image.alt.value | escape }}"
class="img-fluid"
style="object-fit: cover;"
loading="lazy">
[
{
"Type": "group",
"Label": "Section",
"Collapsible": true,
"Collapsed": false,
"Fields": [
{
"Type": "toggle",
"FieldID": "show_section",
"Label": "Show Section?",
"OnLabel": "On",
"OnValue": "On",
"OnColor": "green",
"OffLabel": "Off",
"OffValue": "Off",
"OffColor": "gray",
"DefaultValue": true
},
{
"Type": "group",
"Label": "Section Settings",
"Condition": {
"FieldID": "show_section",
"Type": "eq",
"Value": "On"
},
"Collapsible": true,
"Collapsed": false,
"Fields": []
}
]
}
]