"invalid block [...] is not a valid attribute"

New Member
1 0 0
This file contains the following errors:
  • Error: Invalid block 'slideshow': 'max_blocks' is not a valid attribute
  • Error: Invalid block 'slideshow': 'blocks' is not a valid attribute

 

This is a chunk from the middle of a larger schema: the rest is functioning fine (and will save if I cut this out), but this bit is not cooperating. As far as I can tell it's formatted correctly, but it won't save.

 Any advice?

 

 

{
        "type": "slideshow",
        "name": "Slideshow",
        "max_blocks": 5,
        "blocks": [{
              "type": "image",
              "name": "Slide",
              "settings": [
                {
                  "type": "text",
                  "id": "top_subheading",
                  "label": "Subheading"
                },
                {
                  "type": "textarea",
                  "id": "title",
                  "label": "Heading",
                  "default": "Two line/ntitle slide."
                },
                {
                  "type": "range",
                  "id": "title_size",
                  "label": "Heading text size",
                  "default": 80,
                  "min": 40,
                  "max": 100,
                  "unit": "px"
                },
                {
                  "type": "text",
                  "id": "subheading",
                  "label": "Text",
                  "default": "And optional subtext"
                },
                {
                  "type": "url",
                  "id": "link",
                  "label": "Slide link"
                },
                {
                  "type": "text",
                  "id": "link_text",
                  "label": "Slide link text",
                  "default": "Optional button"
                },
                {
                  "type": "url",
                  "id": "link_2",
                  "label": "Slide link 2"
                },
                {
                  "type": "text",
                  "id": "link_text_2",
                  "label": "Slide link text 2"
                },
                {
                  "type": "color",
                  "id": "color_accent",
                  "label": "Buttons",
                  "default": "rgba(0,0,0,0)"
                },
                {
                  "type": "select",
                  "id": "text_align",
                  "label": "Text alignment",
                  "default": "vertical-center horizontal-center",
                  "options": [
                    {
                      "value": "vertical-center horizontal-left",
                      "label": "Center left"
                    },
                    {
                      "value": "vertical-center horizontal-center",
                      "label": "Center"
                    },
                    {
                      "value": "vertical-center horizontal-right",
                      "label": "Center right"
                    },
                    {
                      "value": "vertical-bottom horizontal-left",
                      "label": "Bottom left"
                    },
                    {
                      "value": "vertical-bottom horizontal-center",
                      "label": "Bottom center"
                    },
                    {
                      "value": "vertical-bottom horizontal-right",
                      "label": "Bottom right"
                    }
                  ]
                },
                {
                  "type": "image_picker",
                  "id": "image",
                  "label": "Image"
                },
                {
                  "type": "select",
                  "id": "focal_point",
                  "label": "Image focal point",
                  "info": "Used to keep the subject of your photo in view.",
                  "default": "center center",
                  "options": [
                    {
                      "value": "20% 0",
                      "label": "Top left"
                    },
                    {
                      "value": "top center",
                      "label": "Top center"
                    },
                    {
                      "value": "80% 0",
                      "label": "Top right"
                    },
                    {
                      "value": "20% 50%",
                      "label": "Left"
                    },
                    {
                      "value": "center center",
                      "label": "Center"
                    },
                    {
                      "value": "80% 50%",
                      "label": "Right"
                    },
                    {
                      "value": "20% 100%",
                      "label": "Bottom left"
                    },
                    {
                      "value": "bottom center",
                      "label": "Bottom center"
                    },
                    {
                      "value": "80% 100%",
                      "label": "Bottom right"
                    }
                  ]
                }
              ]
            }
          ],
          "settings": [
            {
              "type": "select",
              "id": "section_height",
              "label": "Desktop height",
              "default": "650px",
              "options": [
                {
                  "label": "Natural",
                  "value": "natural"
                },
                {
                  "label": "450px",
                  "value": "450px"
                },
                {
                  "label": "550px",
                  "value": "550px"
                },
                {
                  "label": "650px",
                  "value": "650px"
                },
                {
                  "label": "750px",
                  "value": "750px"
                },
                {
                  "label": "Full screen",
                  "value": "100vh"
                }
              ]
            },
            {
              "type": "select",
              "id": "mobile_height",
              "label": "Mobile height",
              "default": "auto",
              "info": "Not used if desktop height is set to natural",
              "options": [
                {
                  "label": "Auto",
                  "value": "auto"
                },
                {
                  "label": "250px",
                  "value": "250px"
                },
                {
                  "label": "300px",
                  "value": "300px"
                },
                {
                  "label": "400px",
                  "value": "400px"
                },
                {
                  "label": "500px",
                  "value": "500px"
                },
                {
                  "label": "Full screen",
                  "value": "100vh"
                }
              ]
            },
            {
              "type": "checkbox",
              "id": "parallax",
              "label": "Enable parallax",
              "default": true
            },
            {
              "type": "select",
              "id": "style",
              "label": "Slide navigation style",
              "default": "minimal",
              "options": [
                {
                  "value": "minimal",
                  "label": "Minimal"
                },
                {
                  "value": "arrows",
                  "label": "Arrows"
                },
                {
                  "value": "bars",
                  "label": "Bars"
                },
                {
                  "value": "dots",
                  "label": "Dots"
                }
              ]
            },
            {
              "type": "checkbox",
              "id": "autoplay",
              "label": "Auto-change slides",
              "default": true
            },
            {
              "type": "range",
              "id": "autoplay_speed",
              "label": "Change images every",
              "default": 7,
              "min": 5,
              "max": 10,
              "step": 1,
              "unit": "s"
            }
          ]
       },

 

0 Likes