Hi
I am just creating an element that i need to create a simplified control panel for where a user can set the background colour of a section and then choose to add a semi transparent background image if they require that effect.
I have used the following parameter code to allow the user to control if there is a background image but i am getting stuck with controlling the advanced background upper and lower controls.
i have tried {{dc:param:bgImage-Yes-No}} to switch the type of the upper background as well as {{dc:p:bgImage-Yes-No}} but that doesn’t seem to work. Can you advise where i am going wrong. I assume this is something to do with the advanced background toggle and the correct value to pass to the upper or lower layer type field. Many thanks
{
“bgColor” : {
“label” : “Background”,
“type” : “color”,
“initial” : “#000000”
},
“bgImage” : {
“label” : “Background Image”,
“type” : “image”,
“initial” : “”,
“height” : 3
},
“bgImage-Yes-No” : {
“type” : “toggle”,
“label” : “Background Image On”,
“on” : “Background Image”,
“off” : “None”,
“initial” : “None”
}
}