Rick Reszler

A Graffiti CMS powered site
  • rss
  • Home
  • Photos
  • Community
  • Contact
  • RSS

Single Blog Only - Community Server 2.1

Rick Reszler 2/8/2007 5:53:00 PM

If you are running Community Server 2.1 and would like to have a single blog as the home page then this post is for you.

All you need to do this is Ken Robertson's great Qgyen.ExtendedUrlMapping v2.1.60714 CS Module and a some tweaking to the SiteUrls.config and the CommunityServer.config to make it happen.

The section in green below is taken directly from the readme.txt that is included with Ken's mod. 

Follow these instructions to setup the modules:

1. Place the Qgyen.ExtendedUrlMappings.dll file in the 'bin' directory of the site.

2. Open the communityserver.config and replace the entry in the <providers> section for
   SiteUrlsData with the following.  Additionally, add the provider for UrlReWriteProvider
   directly below it.

   <add
       name = "SiteUrlsDataProvider"
       type = "Qgyen.ExtendedUrlMapping.SiteUrlsData, Qgyen.ExtendedUrlMapping"
       path = "SiteUrls.config"
   />

   <add
       name = "UrlReWriteProvider"
       type = "Qgyen.ExtendedUrlMapping.UrlReWriter, Qgyen.ExtendedUrlMapping"
   />

3. Open the SiteUrls.config file and a <extendedMappings> section after the <SiteUrls> line.
   You will want the beginning of the file to look like this:

   <?xml version="1.0" encoding="utf-8" ?>
   <SiteUrls>

   <extendedMappings>
       <add path="/photos" newPath="/photos/photos" />
       <add path="/" newPath="/blogs/sample_weblog" />
   </extendedMappings>

   <locations>

This is where it can get a little confusing so I am going to use my Reszler.Org site as an example.

In step 3. above I have created a blog on my site called rick so the default or stock url for the blog is http://www.reszler.org/blogs/rick so the new path field below would be "/blogs/rick" which you can see is being mapped to the root by the "/"

  <extendedMappings>
       <add path="/" newPath="/blogs/rick" />
   </extendedMappings>

Then in the SiteUrls.config file in the navigation section I have commented out the blogs link by surrounding the line with <!-- --> and what this does is removes the Blogs link from the navigation bar and since we are mapping the blog to the root it becomes the new home page.

<link name="home" resourceUrl="home" resourceName="home" roles="Everyone" />
    <!--<link name="home" resourceUrl="webloghome" resourceName="weblogs" roles="Everyone" applicationType = "Weblog" />-->
    <link name="forums" resourceUrl="forumshome" resourceName="forums" roles="Everyone" applicationType = "Forum" />

This last step is only if you want the Home link and not the Blogs link since it's a single blog only site it make sense but if you want the Home link to say Blog instead then all you have to do last is open up the Languages\en-US\Resources.xml file and in the main navigation section change >Home< to >Blog<

<!-- Main Navigation -->
<resource name="home">Home</resource>

Comments
4 Comments
Tags
community-server, csmvps

4 responses.

phani avatar

phani says:

2.26.2007 at 2:59 AM

How can i point root ("/") to blogs default page ("/blogs/default.aspx")

 avatar

says:

2.28.2007 at 3:14 PM

Phani,

If you are using CS 2.0 or 2.1 check out my blog post on muliple blogs at the root.

http://community.reszler.org/blogs/wizz/archive/2006/11/29/multiple-blogs-at-the-root.aspx

Josh avatar

Josh says:

8.22.2007 at 12:23 PM

Is this the recommended process for version 2007 or is there a better approach?

Rick Reszler avatar

Rick Reszler says:

8.27.2007 at 10:07 AM

Josh,

For Community Server 2007 check out this KB article on the online docs.

docs.communityserver.org/.../how-can-i-configure-community-server-for-a-single-user-blog

  • Popular Posts

    • Rob Howard sets the record straight on Graffiti-vs-WordPress
    • Graffiti Themes
    • Retired Apache for Blackberry Pearl
    • One Year Anniversary Telligent FTE
    • Graffiti CMS 1.0 Released
  • Random Thoughts

    • @dfwdraco76 yea and I still may end up reloading it, grrrrrr!
    • @dfwdraco76 what's up with that? :-D
    • OMG Sierra Nevada Torpedo. YUM!!!
    • Follow Me on Twitter
  • Categories

    • GraffitiCMS
    • Personal
    • Technology
    • Wizards Space
  • Hosting Infrastructure:
    IIS7 & SQL2008
Powered by Graffiti CMS
  • design by jide
  • Theme converted to GraffitiCMS by Adonis Bitar