I've been so busy coding with Community Server lately that I haven't taken time to blog about it. I've been a nasty troll, a leech, a bottom feeder, an information consumer! But I had to stop what I was doing to share a Chameleon Minute with you. Hopefully it won't be the last.
They say a picture is worth a thousand bits of slobber dripping down from the corners of your mouth and onto your chin. If that old saying is correct, then grab your handkerchief and check out the screenshots below. The scenario is that I have a shared area on my CS2007 site that displays content dynamically based on a custom data object. I want to display a certain image based on that object's MyAppKey (not the real property name. :-)
First notice the circled Chameleon control, for our purposes the CSControl:Image control. It exposes a number of properties, one of which is the ImageUrl. In the page OnLoad() I create the object (still in prototype mode if you're questioning the logic), pull the MyAppKey string property and set the imageUrl filename dynamically. AND ALL WITH INTELLISENSE as you can plainly see. Wow!!!
You say you don't know which Chameleon control to use? Check out slobber smackin' screenshot #2.
