Add Dynamic Array in Configuration Record

We need to add a dynamic array in the configuration record.The code added below

{
    "type": "object",
    "subtab": {
        "id": "HomePageSlider",
        "group": "extensions",
        "title": "HomePage Slider",
        "description": "HomePage Slider"
    },
    "properties": {
        "HomePageSlider.Images": {
            "group": "extensions",
            "subtab": "HomePageSlider",
            "type": "array",
            "title": "Homepage Slider images",
            "description": "Config description example",
            "items": {
                "type": "object",
                "properties": {
                    "ImageDesktop": {
                        "type": "string",
                        "title": "Desktop",
                        "description": "",
                        "translate": true
                    },
                    "ImageMobile": {
                        "type": "string",
                        "title": "Mobile",
                        "description": "",
                        "translate": true
                    },
                    "Heading": {
                        "type": "string",
                        "title": "heading",
                        "description": "",
                        "translate": true
                    },
                    "Text": {
                        "type": "string",
                        "title": "text",
                        "description": "",
                        "translate": true
                    }
                }
            },
            "default": [
                {
                    "ImageDesktop": "https://www.artinasb.tk/SSP%20Applications/Custom%20SSP_The%20Artina%20Group,%20Inc./Customscassp%20The%20Artina%20Group/Images/Banner/Homebanner.png",
                    "ImageMobile": "https://www.artinasb.tk/SSP%20Applications/Custom%20SSP_The%20Artina%20Group,%20Inc./Customscassp%20The%20Artina%20Group/Images/Banner/HomebannerMobile.png",
                    "Heading": "Quickly secure and mail documents <br> with self-seal envelopes",
                    "Text": ""
                },
                {
                    "ImageDesktop": "https://www.artinasb.tk/SSP%20Applications/Custom%20SSP_The%20Artina%20Group,%20Inc./Customscassp%20The%20Artina%20Group/Images/Banner/Homebanner.png",
                    "ImageMobile": "https://www.artinasb.tk/SSP%20Applications/Custom%20SSP_The%20Artina%20Group,%20Inc./Customscassp%20The%20Artina%20Group/Images/Banner/HomebannerMobile.png",
                    "Heading": "Quickly secure and mail documents <br> with self-seal envelopes",
                    "Text": ""
                },
                {
                    "ImageDesktop": "https://www.artinasb.tk/SSP%20Applications/Custom%20SSP_The%20Artina%20Group,%20Inc./Customscassp%20The%20Artina%20Group/Images/Banner/Homebanner.png",
                    "ImageMobile": "https://www.artinasb.tk/SSP%20Applications/Custom%20SSP_The%20Artina%20Group,%20Inc./Customscassp%20The%20Artina%20Group/Images/Banner/HomebannerMobile.png",
                    "Heading": "Quickly secure and mail documents <br> with self-seal envelopes",
                    "Text": ""
                }
            ]
        }
    }
}

We are adding the configuration record screenshot below

Leave a comment

Your email address will not be published. Required fields are marked *