Passing a section schema variable to a snippet

Hi Shopify Community !

I’d super appreciate getting your insight on a particular problem that’s been torturing me for an hour :

I have a custom schema here in my section :

{
        "type": "text",
        "id": "banner-1-text",
        "label": "Texte",
        "default": "Texte"
	  },

Now I want to pass the text written in there to a snippet in that same section, so i did this :

{% assign banner-1-text = section.settings.banner-1-text %}
{% render 'collections-banner', banner-text:banner-1-text %}

And in the snippet, I’m outputting a bunch of stuff, but for the sake of this question let’s shorten it to :


  

 {{banner-text}}

This, according to what i read on forums, should do the job, but for some reason nothing is passed to the snippet and the

tag returns an empty tag

I really have no idea what I’m missing, so any help would be of great use and appreciated !

Thanks !

snippets don’t have schema and sections do, what your trying to do should work if you add it to the settings_data.json and settings_schema.json ( this goes to every page * so you can call it in any page*)

{%- if product.type != blank and settings.productgrid_type -%}
                {{ product.type | link_to_type }}

            {%- endif -%}

in settings_data.json  "productgrid_type": true,
in settings_schema.json   {
        "type": "checkbox",
        "id": "productgrid_type",
        "label": "Show product type"
      }