Skins and Styles
Each module needs to provide skins for all content pages in the module. Generally, a module will provide a skin to:
Edit or add content
Display a single piece of content
Display a list of the content
For articles, these skins are named Articles_AddArticle, Articles_Article
, and Articles_ArticleSection
.
The strategy each skin follows is to break any piece of dynamic content out into a web control. Static text (Posted by, for example) you can find placed directly into the ASCX, while a web control will always display an author name.
The following is an excerpt from Articles_Article:
<%@ Control %> <%@ Register TagPrefix="Community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %> <table width="100%" cellspacing="0" cellpadding="11" class="Article_Table"> <tr> <td class="Article_IntroCell"> <div align="right"> <community:DisplayTopic Runat="Server" /> </div> <community:Title CssClass="Article_Title...