Hello! I am developing a site for a customer, where i have the need to create a custom section to view data in the backoffice which isn't umbraco data.
normally when i write angular in the frontend i have modules like "project.resources". Which is fine. But i'd like to use this projekt.resources in my backoffice angular, to retrieve data instead of creating a resource to the backoffice only. I tried doing :
But doing this overwrites the umbraco module dependencies, which crashes all backoffice..
when creating angular to backoffice, should i create controllers / resources on the umbraco module ?
if so, how can i access data outside of the umbraco module, like project.resources? Or should i really create another resources file for my umbraco module which gets my data. So the frontend stuff dosn't have anything to do with my backoffice, eventhough it is used in the same way.
angular naming custom section
Hello!
I am developing a site for a customer, where i have the need to create a custom section to view data in the backoffice which isn't umbraco data.
normally when i write angular in the frontend i have modules like "project.resources". Which is fine. But i'd like to use this projekt.resources in my backoffice angular, to retrieve data instead of creating a resource to the backoffice only. I tried doing :
angular.module("umbraco" ["project.resources"]).controller("project.testController",
But doing this overwrites the umbraco module dependencies, which crashes all backoffice..
when creating angular to backoffice, should i create controllers / resources on the umbraco module ?
if so, how can i access data outside of the umbraco module, like project.resources? Or should i really create another resources file for my umbraco module which gets my data. So the frontend stuff dosn't have anything to do with my backoffice, eventhough it is used in the same way.
Hope it makes sense.
- Niclas Schumacher
Hello,
Did you read the documentation about adding a custom section? http://umbraco.github.io/Belle/#/tutorials/Creating-Editors-Trees
This might also help:
http://www.enkelmedia.se/blogg/2013/11/22/creating-custom-sections-in-umbraco-7-part-1.aspx
http://www.enkelmedia.se/blogg/2013/11/22/custom-sections-in-umbraco-7-%E2%80%93-part-2-the-views.aspx
http://www.enkelmedia.se/blogg/2013/12/4/umbraco-7-use-the-rich-text-editor-tinymce-in-a-custom-section.aspx
Jeroen
is working on a reply...