Copied to clipboard

Flag this post as spam?

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


  • Calle Bjernekull 28 posts 103 karma points
    Dec 08, 2016 @ 16:11
    Calle Bjernekull
    0

    Modify TreeNode's icon by css-class

    Would it be possible to customize the icon in the treeview depending on properties of the item?

    For example, we have implemented accessrules for some files in media, and it would be nice to display a small "key-icon" above the regular icon, just to show that there are accessrules on this file.

    As what I can see the nodes cssclass comes from this request /umbraco/backoffice/UmbracoTrees/MediaTree/GetNodes?id=[nodeid]&application=media&tree=&isDialog=false which gives me an array of Umbraco.Web.Models.Trees.TreeNode

    If I could only access the TreeNode object when it's initialized, I could add another css-class. Is this possible?

Please Sign in or register to post replies

Write your reply to:

Draft