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.
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).
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!
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
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
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
is working on a reply...