How to make a single blog the home page

rated by 0 users
This post has 18 Replies | 8 Followers

Not Ranked
Posts 19
Points 275
patrick24601 Posted: Sun, Jan 7 2007 10:11 PM

I'd like to configure CS so when a user visits my site the first thing they see is my blog (the sponsor). But I could not find in the docs as to how to do that.

Is it is possible?

Thanks,

Patrick

 

Top 500 Contributor
Posts 100
Points 1,755

Download and try this:

http://qgyen.net/archive/2006/02/01/1357.aspx

Sam

 

  • | Post Points: 20
Not Ranked
Posts 19
Points 275
Thanks. Will do.
  • | Post Points: 5
Not Ranked
Posts 19
Points 275

This did not work as expected as actually caused my site to start having errors. Site name is 'stopdoingnothing.com'. If you go look under blogs you will see that there is one blog there that I want to make the default page whenever anybody goes to the base domain name. I'd even be OK if the visitors just go to the blog section because there is only one blog there. After I made the mods you could not read an individual blog post, and there were some other errors showing on the site. I backed it out for now.

in communityserver.config I added:

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

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

 

and in the siteurls.config I added:


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

    </extendedMappings>

 

 



 

 


  • | Post Points: 35
Top 500 Contributor
Posts 100
Points 1,755
samuel337 replied on Mon, Jan 15 2007 12:32 AM

Did you comment out or remove this in communityserver.config?

                <add
                    name = "SiteUrlsDataProvider"
                    type = "CommunityServer.Components.SiteUrlsData, CommunityServer.Components"
                    path = "SiteUrls.config"
                />

Apart from that it looks ok from here.

Sam 

  • | Post Points: 20
Not Ranked
Posts 19
Points 275

Yes I did. Followed the directions to a T.

 

I might do a local install and try it there again. 

  • | Post Points: 20
Top 500 Contributor
Posts 100
Points 1,755
samuel337 replied on Wed, Jan 17 2007 1:40 AM

Can you give some pointers as to what the errors were?

The exceptions report in the Admistration part of the control panel might be helpful here.

Sam
 

  • | Post Points: 20
Not Ranked
Posts 19
Points 275
Nothing in there about it.
  • | Post Points: 20
Top 500 Contributor
Posts 100
Points 1,755
samuel337 replied on Wed, Jan 17 2007 1:58 AM

Well what indications were there that there was an error?

Sam
 

  • | Post Points: 5
Top 10 Contributor
Posts 4,137
Points 77,110
CS Developers
patrick24601:

This did not work as expected as actually caused my site to start having errors. Site name is 'stopdoingnothing.com'. If you go look under blogs you will see that there is one blog there that I want to make the default page whenever anybody goes to the base domain name. I'd even be OK if the visitors just go to the blog section because there is only one blog there. After I made the mods you could not read an individual blog post, and there were some other errors showing on the site. I backed it out for now.

in communityserver.config I added:

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

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

 

and in the siteurls.config I added:


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

    </extendedMappings>

 

 



 

 


If you intend to have an actual blog as the home page then you have to add the path to the blog and not the blogs aggregate page like this:

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

    </extendedMappings> 

 

Rick Reszler


  • | Post Points: 5
Top 10 Contributor
Posts 4,137
Points 77,110
CS Developers
If you tell me exactly what you want to do I can help you out with this maybe I will even do a special blog post on this like I did for a multiple blogs site!

Rick Reszler


  • | Post Points: 20
Not Ranked
Posts 6
Points 90
n.reed replied on Thu, Feb 8 2007 7:44 AM

Hi, if I understand correctly, I think Patrick is wanting to do the same thing I do (http://communityserver.org/forums/566894/ShowThread.aspx#566894).

Wizard, if you could post a step-by-step on how to achieve this that would be great.

I really thought this would be a quick configuration or update of a menu link and I would be done. So far I've spent hours trying to get this to work. Surely it must be possible to do this by just changing a link somewhere? Do I have to install third party add-ons and extenders just to change where the menu links to?

Any help greatl appreciated.

  • | Post Points: 20
Top 10 Contributor
Posts 4,137
Points 77,110
CS Developers
I will do a post on this very soon!

Rick Reszler


  • | Post Points: 5
Top 10 Contributor
Posts 4,137
Points 77,110
CS Developers

As promised! Single Blog Only - Community Server 2.1 Cool 

Rick Reszler


  • | Post Points: 50
Not Ranked
Posts 37
Points 530
dimension0 replied on Sun, Feb 11 2007 12:18 AM
Good stuff.  I think third option involving no dlls would be to do the following 3 simple steps:
  • Comment out the blog entry under Navigation to hide the blog tab:

    <!--<link name="blog" resourceUrl="webloghome" resourceName="weblogs" roles="Everyone" applicationType = "Weblog" />-->
     
  • Under the ROOT section change the "home" entry to "/blog/default.aspx" if you want your blogS page to show as your home page, or change to "/blogs/<your_blog_name>/default.aspx"  if you want a single blog to show under the home tab:

    <!--
    - ROOTS -->
    <
    url name="home" location="common" path="blogs/default.aspx" />

        or

    <!--
    - ROOTS -->
    <
    url name="home" location="common" path="blogs/<your_blog_name>/default.aspx" />

  • Adding the following code to the end of the  Page_Load function of Default.aspx in the root folder: 

    NameValueCollection nvc = SiteUrls.Instance( ).UrlData.Paths;
    String val = nvc.Get( "Home" );
    Response.Redirect( val );

Using the above three steps only, i was able to achieve displaying either a single blog as my home or the aggregate blogs page as my home, without the need for the extended URI dll.  The code added to the Default.aspx is generic in that it will redirect to what have path you used for "home" in your SiteUrls.config file.

  • | Post Points: 5
Page 1 of 2 (19 items) 1 2 Next > | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com