Creating a DataType which would display category in checkbox.
Hi,
I want to create a DataType which would display list of child elements of particular parent generated dynamically, in checkboxes.So that user can select the child elements and can display in frontend.
I am using Visual studio2012 and my umbraco version is 7.
Does it have to be a checkbox? Because from your description above it sounds like it's something that can easily be achieved by simply creating a new instance the multi node picker, which exist in Umbraco out of the box.
If you go to "Developer" and right click on "Datatype" then in the dropdown you can find the "Multi node picker" instance. If you choose it you can give it a name and configure it to your needs. So you'll be able to set a starting node and once you're done configuring it you can reference it on your document type. When using it the editors will be able to pick pages from the location you have specified only.
You can create as many different types of this Multi Node picker as you would like.
If this is not good enough then you can of course make your own property editor using AngularJs, which you can learn much more about by reading the Angular Workbook here https://github.com/umbraco/AngularWorkbook
Creating a DataType which would display category in checkbox.
Hi,
I want to create a DataType which would display list of child elements of particular parent generated dynamically, in checkboxes.So that user can select the child elements and can display in frontend.
I am using Visual studio2012 and my umbraco version is 7.
Thanks
Hi Pushpendu
Does it have to be a checkbox? Because from your description above it sounds like it's something that can easily be achieved by simply creating a new instance the multi node picker, which exist in Umbraco out of the box.
If you go to "Developer" and right click on "Datatype" then in the dropdown you can find the "Multi node picker" instance. If you choose it you can give it a name and configure it to your needs. So you'll be able to set a starting node and once you're done configuring it you can reference it on your document type. When using it the editors will be able to pick pages from the location you have specified only.
You can create as many different types of this Multi Node picker as you would like.
If this is not good enough then you can of course make your own property editor using AngularJs, which you can learn much more about by reading the Angular Workbook here https://github.com/umbraco/AngularWorkbook
Hope this helps.
/Jan
Thanks Jan.. It Worked.
is working on a reply...