Copied to clipboard

Flag this post as spam?

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


  • Vitaly Vasilega 65 posts 187 karma points
    Mar 26, 2014 @ 10:29
    Vitaly Vasilega
    0

    Custom section and Umbraco controls

    How can I re-use shelf components Umbraco (directives) in my custom section? 

    For example: datePicker, mediaPicker and etc.

    Thanks!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 26, 2014 @ 12:03
    Jeroen Breuer
    0

    For v6 you had to do some pretty funky stuff. For example:

    http://our.umbraco.org/wiki/reference/code-snippets/use-mntp-on-a-usercontrol

    http://our.umbraco.org/forum/developers/extending-umbraco/6863-Datatype-on-normal-page-or-UserControl

    Eventually I found out how it worked by looking in the Umbraco source code. It might be a good idea to look in the v7 source to see for example how the media picker is displayed on nodes.

    Jeroen

  • Vitaly Vasilega 65 posts 187 karma points
    Mar 26, 2014 @ 16:36
    Vitaly Vasilega
    0

    Hi Jeroen,

    Thanks for the answer.

    I'm just starting to get acquainted with Umbraco 7 and do not know all the intricacies.

    All the examples I found on Custom Section, all of which were implemented on the basis AngularJS.

    Eventually I was able to run mediaPicker, but I had to copy in my controller and make changes in Umbraco.PropertyEditors.MediaPickercontroller. 

    But to adapt datePicker failed. 

    Therefore, and asked a question in the forum, can someone tell me how to properly use the datePicker (umbraco/Views/propertyeditors/datepicker/datepicker.html). 

    And is there any possibility to re-use it?

    Thanks.

    Vitaly

  • Peter Flannery 23 posts 43 karma points
    May 31, 2014 @ 23:20
    Peter Flannery
    0

    Did you find an answer to this?

    I would also like to see data types to be reusable for more advanced custom properties.

    As far as I understand angular directives would be the way to go for reusing the data types but its seems they haven't been setup that way yet.

    Anyone know if data types will ever become directives similar to how the standard umbraco controls are setup - https://github.com/umbraco/Umbraco-CMS/tree/7.1.4/src/Umbraco.Web.UI.Client/src/common/directives

Please Sign in or register to post replies

Write your reply to:

Draft