Executing Custom Code within a Chameleon Code
Most Chameleon control's ITemplate properties (LeaderTemplate, ContentTemplate, FooterTemplate, etc.) support ASP.net inline databinding syntax.
For example, to show the current blog post's URL (as rendered text), you could use the following code:
<CSBlog:WeblogPostData runat="server">
<ContentTemplate>
<%# BlogUrls.Instance().Post(WeblogControlUtility.Instance().GetCurrentWeblogPost(this)) %>
</ContentTemplate>
</CSBlog:WeblogPostData>
You do not need to add a null check for the result of GetCurrentWeblogPost(this) because the <CSBlog:WeblogPostData /> control will databind and render only if there is a currently bound WeblogPost object.
- Does CS2007/Chameleon use ASP.net master pages?
The default theme of CS2007/Chameleon does use ASP.net master pages, however, the theme developer has complete control over how master pages (or the type of master pages) are used.
- Where can I find a list of all of the Chameleon controls available in CS2007?
An MSDN-style downloaded compiled-help file has been created that includes documentation for all of the Chameleon controls in CS2007. Go to the Chameleon Control Documentation area of this site for more information.
- How do I know which properties are available to single value and condition controls that access Community Server API objects?
The available properties and their data types are listed within the Chameleon Control Documentation area of this site.