Copied to clipboard

Flag this post as spam?

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


  • Murray Roke 467 posts 875 karma points c-trib
    Oct 02, 2009 @ 04:50
    Murray Roke
    0

    Changing the tree icon in admin

    Hi all

    I'd like to alter the tree icon in the admin based on a value in one of the property fields in order for the content to be found quickly.

    The content nodes are created and updated via the API.

    At certain stages of thier "life-cycle" I'd like them to have a different icon, eg: incomplete & completed.

    I've considered:

    • different doc-type, but as they can change from one to the other I believe that is difficult.
    • different publish status, not suitable because they're always un-published in those 2 states.

    I'm assuming this would be extra difficult so unless I hear otherwise I won't bother trying :-)

    Cheers.

    Murray.

  • Thomas Kahn 602 posts 506 karma points
    Oct 02, 2009 @ 09:02
    Thomas Kahn
    0

    What about setting a status flag in the node name?

    [INCOMPLETE] MyNode

    Then when it's completed, you remove the prefix by renaming the node. I'm thinking that the node name is something that you can access and alter. 

    /Thomas Kahn

     

  • Aaron Powell 1708 posts 3044 karma points c-trib
    Oct 03, 2009 @ 01:05
    Aaron Powell
    0

    The only way i can think to achieve this is to create your own implementation of the content tree. Just inherit the standard content tree and in the Render(ref XmlTree tree) method I'd have something like this:

    pubic override void Render(ref XmlTree tree) {
    base.Render(ref XmlTree);
    foreach(var node in tree.Nodes) { //check that property, I'm not 100% sure it's right
    //do a lookup in the API for your current property based on 'node.NodeID'
    //then set node.Icon to what ever you want, or skip
    }
    }
  • Murray Roke 467 posts 875 karma points c-trib
    Oct 05, 2009 @ 02:10
    Murray Roke
    0

    Thanks for the Ideas, but the requirements are shifting under me, so I won't be looking at that solution anymore, but I'll keep those in mind in case I do need to do it some day, I'll give slace the 'tick' but note that I haven't actually tried it :-)

    Cheers.

    Murray.

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies