jkh80
-
4/2/2012 5:32:12 PM
How do I set a document icon programmatically?
I have some code that is creating CMS.File documents programmatically, but I'm unable to set the icon for these documents. I would like to be able to set the appropriate icon for the document based on the file's extension, just like the behaviour when you create a CMS.File document from the CMS Desk.
I can't seem to find methods/properties that allow me to do this in the CMS.TreeEngine.TreeNode class.
Has anyone had any experience with this?
|