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 } }
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 :-)
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:
I'm assuming this would be extra difficult so unless I hear otherwise I won't bother trying :-)
Cheers.
Murray.
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
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:
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.
is working on a reply...
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.