Branding the SharePoint Treeview (spTreeview control)

I’ve gotta say, this part of the process has been pretty straight forward – but now I’ve got a bit of a problem – how do I change the icons in the treeview for the different types of list, etc? I mean, I can change the icons for the expand/collapse – as described here – but the orange folder icons don’t match my design. I’d like to specify others. I could also change the images themselves – but that would cause the change to be farm-wide, rather than just for my pages.

I’ve even tried using JavaScript running onLoad to match and replace the image sources – but as the TreeView control dynamically loads subnodes when it’s expanded, well, I’d have to hook into that event also, and replace any new images again. Not really practical.

All in all, those images seem to be just baked in.

Advertisement
Branding the SharePoint Treeview (spTreeview control)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.