{
    "action": "add_pagedata_structure",
    "pagedata": [
        {
            "name": "Title Banner with image",
            "type": "text",
            "order": "0",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Banner Image",
                            "info": "Recommended Image Size:  847px x 640px ",
                            "order": "0",
                            "type": "image",
                            "mime": "^image\\\/(jpeg|bmp|gif|png)$",
                            "settings": "{\"crop_adjust\":[\"title_banner\",\"title_banner_mobile\", \"title_banner_tall\"], \"image_sizes\":[\"title_banner\",\"title_banner_mobile\",\"title_banner_tall\"]}",
                            "css_class": "imageUploadifive",
                            "data2": "Online Doctor Banner Image"
                        },
                        {
                            "name": "Title",
                            "order": "1"
                        },
                        {
                            "name": "Subtitle",
                            "order": "2"
                        },
                        {
                            "name": "Content",
                            "order": "3",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        },
                        {
                            "name": "Button Text",
                            "order": "4"
                        },
                        {
                            "name": "Button Link",
                            "order": "5"
                        },
                        {
                            "name": "Button 2 Text",
                            "order": "6"
                        },
                        {
                            "name": "Button 2 Link",
                            "order": "7"
                        },
                        {
                            "name": "Show Login Link",
                            "info": "If checked, this will overwrite button 2 with a link to the login page.",
                            "order": "8",
                            "type": "checkbox",
                            "setup": "1"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Services Intro",
            "order": "1",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Title",
                            "order": "0"
                        },
                        {
                            "name": "Content",
                            "order": "1",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Services",
            "order": "2",
            "allow_more": "1",
            "allow_more_max": "3",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Service Icon",
                            "order": "0",
                            "type": "select",
                            "setup": "1",
                            "options": "json_url:\/sites\/pharmacy\/admin\/svgicons.php"
                        },
                        {
                            "name": "Service Name",
                            "order": "1"
                        },
                        {
                            "name": "Service Description",
                            "order": "2",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Slideshow",
            "order": "3",
            "allow_more": "1",
            "allow_more_max": "4",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Image",
                            "info": "Width: 1392px Height: 559px",
                            "order": "0",
                            "type": "image",
                            "mime": "^image\\\/(jpeg|bmp|gif|png)$",
                            "settings": "{\"crop_adjust\":[\"slide_boxed\",\"slide_boxed_tablet\",\"slide_boxed_tablet_small\",\"slide_boxed_mobile\"], \"image_sizes\":[\"slide_boxed\",\"slide_boxed_tablet\",\"slide_boxed_tablet_small\",\"slide_boxed_mobile\"]}",
                            "css_class": "imageUploadifive",
                            "data2": "Example Blocks Image"
                        },
                        {
                            "name": "Title",
                            "info": "Supports bold text by wrapping text within a <strong> tag. e.g <strong>This will be bold<\/strong>",
                            "order": "1",
                            "setup": "1"
                        },
                        {
                            "name": "Content",
                            "order": "2",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        },
                        {
                            "name": "Dark Overlay",
                            "order": "3",
                            "type": "checkbox"
                        },
                        {
                            "name": "White Text",
                            "order": "4",
                            "type": "checkbox"
                        },
                        {
                            "name": "Link",
                            "order": "5"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Contact Form",
            "order": "4",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Title",
                            "order": "1"
                        },
                        {
                            "name": "Content",
                            "order": "2",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        },
                        {
                            "name": "Contact Form Title",
                            "order": "3"
                        },
                        {
                            "name": "Success Title",
                            "order": "4"
                        },
                        {
                            "name": "Success Message",
                            "order": "5",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        },
                        {
                            "name": "Enable this section",
                            "order": "6",
                            "type": "checkbox"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Content Sections",
            "order": "5",
            "allow_more": "1",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Title",
                            "order": "0"
                        },
                        {
                            "name": "Content",
                            "order": "1",
                            "type": "textarea",
                            "css_class": "tinymce"
                        },
                        {
                            "name": "CTA Button Text",
                            "order": "2"
                        },
                        {
                            "name": "CTA Button Link",
                            "order": "3"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Large CTA Banner",
            "type": "text",
            "order": "6",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Title",
                            "order": "0"
                        },
                        {
                            "name": "Content",
                            "order": "1",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        },
                        {
                            "name": "Button Text",
                            "order": "2"
                        },
                        {
                            "name": "Button Link",
                            "order": "3"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Large CTA Banner 2",
            "type": "text",
            "order": "7",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Title",
                            "order": "0"
                        },
                        {
                            "name": "Content",
                            "order": "1",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        },
                        {
                            "name": "Button Text",
                            "order": "2"
                        },
                        {
                            "name": "Button Link",
                            "order": "3"
                        }
                    ]
                }
            ]
        },
        {
            "name": "CTA Banner",
            "type": "text",
            "order": "8",
            "items": [
                {
                    "order": "0",
                    "data": [
                        {
                            "name": "Title",
                            "order": "0"
                        },
                        {
                            "name": "Content",
                            "order": "1",
                            "type": "textarea",
                            "css_class": "simpleTinymce"
                        },
                        {
                            "name": "Button Text",
                            "order": "2"
                        },
                        {
                            "name": "Button Link",
                            "order": "3"
                        }
                    ]
                }
            ]
        }
    ]
}