I'm trying to start learning how to create Angular-based property editors for Umbraco 7. I found the places in the Umbraco 7 source code where the views and controllers for the bulit-in property editors are stored, but I haven't been able to find manifests to go along with those. I was hoping to reference these to learn by example.
Does anyone know where I could find these? Or are the built-in editors somehow different, and don't have manifests?
For anyone who wants to take a look at the code I did find, here's where they are:
The core property-types are built using a c# class, gives us less files to worry about in our distribution, so thats why you cant find a manifest, this doc is a good start:
Sure but Tim already wrote a blogpost http://www.nibble.be/?p=415 Just derive from PropertyEditor and decorate with the PropertyEditor attribute. In case you need any additional CSS or (controller) Javascript file decorate your class with PropertyEditorAsset also. Look at the constructor Tim used in the bogpost. This is how you can setup the properties you normally set in the Javascript file.
Im looking for the Package.Manifest files for the RelatedLinks control. I want to create my own control based on the RelatedLinks control and as I dont want to fully reinvent the wheel I would like to use the existing code but change it ever so slightly in my own App_plugins section.
Unfortunately the model.config is undefined and I need to know where this is set up in the Manifest file.
Is there available source out there that can allow me to populate the config for that control?
Manifests for built-in property editors?
I'm trying to start learning how to create Angular-based property editors for Umbraco 7. I found the places in the Umbraco 7 source code where the views and controllers for the bulit-in property editors are stored, but I haven't been able to find manifests to go along with those. I was hoping to reference these to learn by example.
Does anyone know where I could find these? Or are the built-in editors somehow different, and don't have manifests?
For anyone who wants to take a look at the code I did find, here's where they are:
Built-in property editor views: /Umbraco/Views/propertyeditors/
Built-in property editor controllers: /Umbraco/Js/umbraco.controllers.js
Thanks,
David
Hi David
The core property-types are built using a c# class, gives us less files to worry about in our distribution, so thats why you cant find a manifest, this doc is a good start:
http://umbraco.github.io/Belle/#/tutorials/manifest
and a another sample: http://umbraco.github.io/Belle/#/tutorials/CreatingAPropertyEditor
/Per
Hi Per,
Is it also possible for Package devs to use the C# classes or are those internal? It feels a bit weird to write a JSON file by hand.
Thanks,
Richard
Sure you can use those classes, they give you the same functionality as the package.manifest, just in c#
Yes figured out last week :)
Hi Richard
Any chance of a brain dump of what you figured out - I'd like to do the same.
thanks in advance
Ian
Hi Ian,
Sure but Tim already wrote a blogpost http://www.nibble.be/?p=415 Just derive from PropertyEditor and decorate with the PropertyEditor attribute. In case you need any additional CSS or (controller) Javascript file decorate your class with PropertyEditorAsset also. Look at the constructor Tim used in the bogpost. This is how you can setup the properties you normally set in the Javascript file.
Hope this helps,
Richard
Hi Richard
Perfect, just what i was looking for!
Many thanks
Ian
Hi,
Im looking for the Package.Manifest files for the RelatedLinks control. I want to create my own control based on the RelatedLinks control and as I dont want to fully reinvent the wheel I would like to use the existing code but change it ever so slightly in my own App_plugins section.
Unfortunately the model.config is undefined and I need to know where this is set up in the Manifest file.
Is there available source out there that can allow me to populate the config for that control?
Thanks
Jon
is working on a reply...