Display Specific Blog or Blog Group Posts

written by Rick Reszler on Wednesday, November 29 2006

This how you can display the most recent blog posts from a specific blog or blog group on your Community Server home page.

Open up the default.aspx file in the root (home page) and in this section just add the desired blog (SectionID="") or group (GroupID="")

In this example I am using a specific group also notice the PageSize="4" this is to limit how many posts show at once on the home page.

To determine what the ID value is for a blog or a blog group just go to the CS Control Panel > Administration > Blogs and to either Blogs or Blog Groups in the Grid View just hover the mouse over the group or blog and look at the bottom of the browser for the ID in the status bar. 

<Blog:AggregatePostList runat="Server" PageSize="4" id="AggregateBlogPosts" EnablePaging="false" EnableTitle="false" GroupID="7">
                    <SkinTemplate>
                        <h2 class="CommonTitle">
                            <asp:Literal runat="server" id="title" />
                        </h2>
                        <Blog:AggregateList id="Posts" runat="Server" EnableTitle="false"/>
                    </SkinTemplate>
                </Blog:AggregatePostList>

I have also done an article on adding back the front page news to your Community Server2.1 sites here.

Similar Posts

  1. Adding Front Page News to CS 2.1
  2. Single Blog Only - Community Server 2.1
  3. Blog Aggregate Post Count - CS 2.1

Comments

  • cheeseflavor on on 11.30.2006 at 3:32 PM

    cheeseflavor avatar

    Rick,

    A while back, I posted to CS.ORG forums about the ability to show multiple blogs in the aggregate and have them sort by blog. Would this possibly work for that?

    Steve

  • on on 11.30.2006 at 8:00 PM

     avatar

    Steve yes that is what it's for, let me know if you need any help?

Comments are closed

Options:

Size

Colors