I would like to create my data type in which i would like put together a text area with a checkBox as a table with two columns (in which the first column contains the text area and the second contains the checkbox).
Can someone tell me how can i create this ? (i'm new in umbraco and i work in a company which use the Umbraco platform quite a bit).
I want to add functionality on the checkbox and i don't know how i can save the stage after the save.
(In all tries where i done after the save the checkbox lost its value)
For more informations : In my template i want to show only fields which have selected the checkbox
Here is my code :
package.manifest :
{
propertyEditors: [
{
alias: "XMLGames",
name: "XML Games",
editor: {
view: "~/App_Plugins/XMLGames/xmlgameseditor.html",
valueType: "JSON"
},
prevalues: {
fields: [
{
label: "Number of columns",
description: "Enter the number of columns",
key: "cols",
view: "number",
validation: [
{
type: "Required"
}
]
},
{
label: "Number of rows",
description: "Enter the number of rows",
key: "rows",
view: "number",
validation: [
{
type: "Required"
}
]
},
{
label: "Manage rows",
description: "Let user add/remove and sort rows",
key: "manageRows",
view: "boolean"
}
]
}
},
],
javascript: [
'~/App_Plugins/XMLGames/xmlgames36.controller.js'
]
}
Create MyDataType
Hi,
I would like to create my data type in which i would like put together a text area with a checkBox as a table with two columns (in which the first column contains the text area and the second contains the checkbox).
Can someone tell me how can i create this ? (i'm new in umbraco and i work in a company which use the Umbraco platform quite a bit).
Thanks in advance.
Hi Ismini
You have to create custom property editor, look here how to do it - https://our.umbraco.org/documentation/tutorials/Creating-a-Property-Editor/
Thanks,
Alex
I have already read it but i will try it one more time.
If i have problem again maybe i need a little bit more help.
Thanks
Hi,
I want to add functionality on the checkbox and i don't know how i can save the stage after the save. (In all tries where i done after the save the checkbox lost its value)
For more informations : In my template i want to show only fields which have selected the checkbox
Here is my code :
package.manifest :
the HTML file :
and the controller.js :
is working on a reply...