This post originated from an RSS feed registered with .NET Buzz
by Brendan Tompkins.
Original Post: Community Server Homepage Controls
Feed Title: Brendan Tompkins
Feed URL: /error.htm?aspxerrorpath=/blogs/brendan.tompkins/Rss.aspx
Feed Description: Blog First. Ask Questions Later.
If you read us through our website, youâve probably noticed that we launched our new homepage yesterday. Community Server
didnât have exactly the controls I needed to create the new homepage,
so I had to create new controls that did what I wanted.Â
Fortunately, CS did gave me the building blocks I needed to
quickly assemble the new page. I wanted to post here the source
files, in case anyone wants to create a similar page with Community
Server. I created three new controls. Hereâs what they look like
on the home page.
Control 1:Â Â FeaturedArticle Purpose: This control shows one featured article, along with the excerpt and the authorâs avatar. Files Needed : FeaturedArticle.cs, Skin-FeaturedArticle.ascx
Control 2:Â Â AggregateCompactPostList Purpose: Shows a configurable number of latest and most popular posts. Files Needed : AggregateCompactPostList.cs, Skin-AggregateCompactPostList.ascx, AggregatePostList.cs, AggregatePostList.ascx
Control 3:Â Â AggregateCompactArticleList Purpose: Displays an articleâs category title, excerpt, and published articles. Files
Needed : AggregateCompactArticleList.cs,
Skin-AggregateCompactArticleList.ascx, AggregatePostList.cs,
AggregatePostList.ascx
Youâll also need some css styles added to CommunityServerâs style sheet (via default.aspx in the Themes/default/style directory)
All CS files go in the CommunityServerBlogs project in the Controls/AggregateBlogControls directory, and all ascx files go in the CommunityServerWeb/Themes/Skins/Blogs directory.