Hello
I would like help with being able to add sections to the collection page!
Here is the collections.liquid file
{%- if section.settings.title != blank -%}
##
{{ section.settings.title }}
{%- endif -%}
{%- if section.blocks.size > 0 -%}
{% for block in section.blocks %}
{%- assign proCollection = block.settings.collection_handle -%}
{%- if proCollection != blank -%}
{%- if block.settings.image != blank -%}
{% include 'image-global' with image: block.settings.image %}
{%- else -%}
{%- if collections[proCollection].image -%}
{% include 'image-global' with image: collections[proCollection].image %}
{%- else -%}
{% endif %}
{%- endif -%}
{%- if block.settings.title != blank or proCollection != blank -%}
####
{%- if block.settings.title != blank %}
{{ block.settings.title }}
{% else %}
{{ collections[proCollection].title }}
{% endif %}
{%- endif -%}
{%- endif -%}
{% endfor %}
{%- endif -%}
{%- if section.settings.text_note != blank -%}
{{ section.settings.text_note }}
{%- endif -%}
{% schema %}
{
"name": "Vela Collection Info",
"class": "velaFramework",
"settings": [
{
"type": "header",
"content": "Design Section"
},
{
"type": "checkbox",
"id": "full_with",
"label": "Enabel Full Width?"
},
{
"type": "color",
"id": "color_bg",
"label": "Background Color",
"default": "rgba(0,0,0,0)"
},
{
"type": "text",
"id": "padding_block",
"label": "Padding",
"placeholder": "0px 0px"
},
{
"type": "header",
"content": "General Settings"
},
{
"type": "text",
"id": "title",
"label": "Heading"
},
{
"type": "text",
"id": "text_note",
"label": "Note"
}
],
"presets": [
{
"type": "item",
"name": "Collection",
"settings": [
{
"type": "collection",
"id": "collection_handle",
"label": "Collection"
},
{
"type": "text",
"id": "title",
"label": "Box heading"
},
{
"type": "image_picker",
"id": "image",
"label": "Box image"
}
]
}
],
"blocks": [
{
"type": "item",
"name": "Collection",
"settings": [
{
"type": "collection",
"id": "collection_handle",
"label": "Collection"
},
{
"type": "text",
"id": "title",
"label": "Box heading"
},
{
"type": "image_picker",
"id": "image",
"label": "Box image"
}
]
}
]
}
{% endschema %}
