I was hoping someone made a component like this and was glad to stumble across this. Thank you. I am now trying to incorporate this into the Authoring Tool but can't quite seem to get it to work. I created the following 'properties.schema' file but as soon as I click save i get the following error in the node logs:
Unexpected value for "data" parameter when updating component by 55273314020e8ed407dd1da3
properties.schema:
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
"properties":{
"navigateTo": {
"type":"string",
"required":false,
"default": "",
"inputType": "Text",
"validators": ["required"],
"help": "Id of page to navigate to."
},
"_graphic": {
"type":"object",
"required":true,
"title": "Nav Graphic",
"properties":{
"title": {
"type":"string",
"required":false,
"default": "",
"inputType": "Text",
"validators": [],
"help": "Image title."
},
"alt": {
"type":"string",
"required":false,
"default": "",
"inputType": "Text",
"validators": [],
"help": "The alternative text for this image"
},
"large": {
"type":"string",
"required":true,
"default": "",
"inputType": "Asset:image",
"validators": ["required"],
"help": "The large sized image for desktop devices"
},
"medium": {
"type":"string",
"required":true,
"default": "",
"inputType": "Asset:image",
"validators": ["required"],
"help": "The medium sized image for tablet devices"
},
"small": {
"type":"string",
"required":true,
"default": "",
"inputType": "Asset:image",
"validators": ["required"],
"help": "The small sized image for mobile devices"
}
}
}
}
}
Any help resolving would be greatly appreciated.