Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pushpendu 23 posts 113 karma points
    Jan 22, 2015 @ 11:45
    pushpendu
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 22, 2015 @ 11:51
    Jan Skovgaard
    100

    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

  • pushpendu 23 posts 113 karma points
    Jan 22, 2015 @ 12:09
    pushpendu
    0

    Thanks Jan.. It Worked.

Please Sign in or register to post replies

Write your reply to:

Draft