predefinedBlocks

Description

JSON object listing predefined blocks along with default configuration. Read full specs at predefinedBlocks

File
template.jsonexperience.json
Key Category
blocksdefaultLivepages
Type
JSON Object
  • Format
  • Reference
  • Sample

Format

The predefinedBlocks follows the following JSON structure:

    "predefinedBlocks": {
        "name-of-block": {
            "preventBlockSettings": false,
            "preventChangeType": false,
            "preventEdit": false,
            "preventDelete": false,
            "type": "Image",
            "title": "Cover Image",
					  "data": {
								      // Block definition
									}
        }
    }

Reference

⚙️
JSON Config

Key
Type
Description

Sample

    "predefinedBlocks": {
        "vertical-cover-image": {
            "preventBlockSettings": {
                "SPONSOR": true,
                "MANAGER": false
            },
            "preventChangeType": {
                "SPONSOR": true,
                "MANAGER": false
            },
            "preventEdit": {
                "SPONSOR": true,
                "MANAGER": false
            },
            "preventDelete": {
                "SPONSOR": true,
                "MANAGER": true
            },
            "type": "Image",
            "title": "Cover Image",
					  "data": {
										"heading": "Middle Panel", 
										"headingVisibility": false,
										"headingAlignment": "left",
										"livestreamTitle": "Livestream",
										"livestreamTitleVisibility": true,
										"streamingService": "customstream",
										"livestreamUrl": "https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_10mb.mp4",
										"displaySomethingWhenNotLive": "video",
										"displayImageWhenNotLive": null,
										"displayVideoWhenNotLive": null,
										"disableVideoQualityOptions": false,
										"disableAutoplay": true,
										"order": 1,
										"alignment": "left",
										"backgroundCoverImage": "https://venues.gevme.com/c8e2767b-e553-4349-b722-2e8424e09ee4/main-stage/media/panel_image.png",
										"backgroundCoverImageDimension": { "width": 1000, "height": 640 },
										"backgroundCoverImageDistortion": {
											"topLeft": ["0, 0", "10, 8"],
											"bottomLeft": ["0, 640", "6, 403"],
											"bottomRight": ["1000, 640", "429, 374"],
											"topRight": ["1000, 0", "423, 81"]
										},
										"blockWidth": "100%",
										"blockHeight": "100%",
										"widthType": "full",
										"fitHeightToContent": false,
										"boundingBox": true,
										"contentPadding": "0px"
									}
        }
    }