Copied to clipboard

Flag this post as spam?

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

  • Mus'ab 155 posts 381 karma points notactivated
    Sep 11, 2019 @ 07:05

    How to customize section & tree in Umbraco 8

    Hello every body i created a custom section and custom tree in umbraco 8 like bellow image enter image description here

    when i click on tree item the html page called edit.html is rendering now i want to show nodes in this page and i want to be able to edit these nodes how can i do that ?

  • Marc Goodson 1677 posts 11072 karma points MVP 6x c-trib
    Sep 12, 2019 @ 19:28
    Marc Goodson

    Hi Mus'ab

    Basically it's largely driven by convention, you can add actions to the Menu for your tree items to trigger different angular views to be loaded, but if you just click on an item by convention it will load the edit.html view from the folder associated with your tree.

    so if you have Tree created like in the docs example

    [Tree("developer", "favouriteThingsAlias", "Favourite Things Name")]
    public class FavouriteThingsTreeController : TreeController

    The view will be loaded from this folder


    You then use angularJS to wire up the custom functionality of the tree so in the same folder as the edit.html add a package.manifest file:


    In this file you can define resources, such as javascript and css files, and Umbraco will load these when the edit.html view is accessed

        "javascript": [

    So the idea would be to create an angularJS controller inside one of the js resource files, and then tie your edit.html file to it using the ng-controller attribute

    <div ng-controller="YourSite.FavouriteThings.EditController as vm">
        <form name="mySectionForm" novalidate>
                    // main content here
                    // footer content here

    Umbraco has a number of directives you can use in your custom tree views for common interactions:



  • Mus'ab 155 posts 381 karma points notactivated
    Sep 15, 2019 @ 08:21

    Hi Marc Goodson

    i have write an angular controller and use it in edit.html but i have a problem now when i do changes in html page the change dont reflect on the website i think its cashing problems so how can i clear my html page from cash ?

  • Marc Goodson 1677 posts 11072 karma points MVP 6x c-trib
    Sep 15, 2019 @ 14:05
    Marc Goodson

    Hi Mus'ab

    If you are using Chrome there is a setting to 'disable cache' when dev tools is open;

    enter image description here

    Then if you've made a change to your html, if you open 'devtools' when looking an your page, and instead of clicking 'refresh' you instead right-click the refresh icon - you have an additional menu appear, with the option 'Empty Cache and Hard Reload'

    enter image description here

    and this usually does the trick!



Please Sign in or register to post replies

Write your reply to: