The previous post (Part II) showed how to populate the content tree of a custom Umbraco backoffice section. This one presents a way for content managers to quickly handle each post pending approval, which means we’re going to create our own AngularJS controller and view.
When the content manager selects one node pending approval we want him to be able to take three quick actions:
- get some information about that node;
- quickly access it in the content section;
- quickly publish it.
The previous post (Building an Umbraco 7 backoffice extension – Part I), demonstrated how easy it is to create a new section in Umbraco’s backoffice. This post will show how we can populate this new section with meaningful content coming directly from the backoffice.
To begin with, we must reference a few more assemblies (also available at the Umbraco’s installation bin directory):
Then we can populate our section with a tree containing content awaiting approval. To accomplish this we must extend an Umbraco class named TreeController and decorate it with information about our Approve It plugin:
The next series of posts will show how to build plugins that extend the default Umbraco backoffice capabilities.