I have installed Subtext for my blogging purposes but having the multiple blogs working is a bit tricky.

I have to comment out the following handler line on the root web.config

<!--<HttpHandler pattern="(?:((\/\/default\.aspx)?|(\/\/?))?)$" controls="homepage.ascx"/>-->

And set up the aggregation section like:

<!-- Aggregate Blog Stuff -->
<add key="AggregateEnabled" value="true" />
<add key="AggregateTitle" value="Analyst Developer Blogs" />
<add key="AggregateUrl" value="http://www.analystdeveloper.com/blogs" />
<add key="AggregateDescription" value="Blogs by Analyst Developer" />
<add key="AggregateHost" value="analystdeveloper.com" />


Note the value of AggregateHost. Although the subtext is installed under http://www.analystdeveloper.com/blogs, this should be the root host.


I have 2 directories for each of my blogs under http://www.analystdeveloper.com/blogs these are

  1. http://www.analystdeveloper.com/blogs/gurkan and
  2. http://www.analystdeveloper.com/blogs/gurkaneng


Each directory contains 3 files:

  1. default.aspx (an empty file)
  2. RSS2Image.gif (picture of yourself or a logo for RSS readers)
  3. web.config

This individual web.config file contains handlers (same as main web.config) and some UI texts with a different encoding. We need to copy the handlers from main web.config so that the links can go where they suppose to go.

<?xml version="1.0" encoding="unicode" ?>
<configuration>
<HandlerConfiguration defaultPageLocation="DTP.aspx" type="Subtext.Common.UrlManager.HandlerConfiguration, Subtext.Common">
<HttpHandlers>
<HttpHandler pattern="/login.aspx" handlerType="Page" pageLocation="Login.aspx" />
<HttpHandler pattern="/Admin/" handlerType="Directory" directoryLocation="Admin" />
<HttpHandler pattern="/rss\.aspx$" type="Subtext.Common.Syndication.RssHandler, Subtext.Common" handlerType="Direct" />
<HttpHandler pattern="/atom\.aspx$" type = "Subtext.Common.Syndication.AtomHandler, Subtext.Common" handlerType="Direct" />
<HttpHandler pattern="/comments/commentRss/\d+\.aspx$" type = "Subtext.Common.Syndication.RssCommentHandler, Subtext.Common" handlerType="Direct" />
<HttpHandler pattern="/aggbug/\d+\.aspx$" type = "Subtext.Framework.Tracking.AggBugHandler, Subtext.Framework" handlerType="Direct" />
<HttpHandler pattern="/customcss\.aspx$" type = "Subtext.Web.UI.Handlers.BlogSecondaryCssHandler, Subtext.Web" handlerType="Direct" />
<HttpHandler pattern="(?:/category\/(\d|\w|\s)+\.aspx/rss/?)$" type = "Subtext.Common.Syndication.RssCategoryHandler, Subtext.Common" handlerType="Direct" />
<HttpHandler pattern="(?:/archives\.aspx)$" controls="SingleColumn.ascx" />
<HttpHandler pattern="(?:/archive/\d{4}/\d{2}/\d{2}/\d+\.aspx)$" controls="viewpost.ascx,Comments.ascx,PostComment.ascx" />
<HttpHandler pattern="(?:/archive/\d{4}/\d{2}/\d{2}/[-_,+\.\w]+\.aspx)$" controls="viewpost.ascx,Comments.ascx,PostComment.ascx" />
<HttpHandler pattern="(?:/archive/\d{4}/\d{1,2}/\d{1,2}\.aspx)$" controls="ArchiveDay.ascx" />
<HttpHandler pattern="(?:/archive/\d{4}/\d{1,2}\.aspx)$" controls="ArchiveMonth.ascx" />
<HttpHandler pattern="(?:/articles/\d+\.aspx)$" controls="viewpost.ascx,Comments.ascx,PostComment.ascx" />
<HttpHandler pattern="(?:/articles/[-_,+\.\w]+\.aspx)$" controls="viewpost.ascx,Comments.ascx,PostComment.ascx" />
<HttpHandler pattern="(?:/contact\.aspx)$" controls="Contact.ascx" />
<HttpHandler pattern="(?:/posts/|/story/|/archive/)" type="Subtext.Web.UI.Handlers.RedirectHandler, Subtext.Web" handlerType="Direct" />
<HttpHandler pattern="(?:/gallery\/\d+\.aspx)$" controls="GalleryThumbNailViewer.ascx" />
<HttpHandler pattern="(?:/gallery\/image\/\d+\.aspx)$" controls="ViewPicture.ascx" />
<HttpHandler pattern="(?:/(?:category|stories)/(\w|\s)+\.aspx)$" controls="CategoryEntryList.ascx" />
<HttpHandler pattern="(?:/comments\/\d+\.aspx)$" type = "Subtext.Common.Syndication.CommentHandler, Subtext.Common" handlerType="Direct" />
<HttpHandler pattern="(?:/services\/trackbacks/\d+\.aspx)$" type = "Subtext.Framework.Tracking.TrackBackHandler, Subtext.Framework" handlerType="Direct" />
<HttpHandler pattern="(?:/services\/pingback\.aspx)$" type = "Subtext.Framework.Tracking.PingBackService, Subtext.Framework" handlerType="Direct" />
<HttpHandler pattern="(?:/services\/metablogapi\.aspx)$" type = "Subtext.Framework.XmlRpc.MetaWeblog, Subtext.Framework" handlerType="Direct" />
<HttpHandler pattern="(?:((\/\/default\.aspx)?|(\/\/?))?)$" controls="homepage.ascx"/>
</HttpHandlers>
</HandlerConfiguration>
<appSettings>
<!--UI Text -->
<add key="PostCollection" value="Kategoriler" />
<add key="ArticleCollection" value="Köse Yazilari" />
<add key="ImageCollection" value="Resim Galerisi" />
<add key="Archives" value="Arsivler" />
</appSettings>
</configuration>

That is it. You can also use something like .Text's web.config for multiple blogs. But I needed to change the UI Texts for my Turkish blog so I have implemented like this.

Advertisement


Comments for this entry:

# re: Multiple blogs on Subtext

Hi. I found many problem to configure Subtext Multiblogs. Now I tried to configure 3 blogs how you suggest.(dir,default.aspx,web.config...) The three blogs are working well, but the first, that I have defined as "aggregator" does not aggregate the blogs messages. I have not found useful docs about Subtext Multiblogs config. Do you any suggest, please?
Sergio

by serberwww@yahoo.it on  4/18/2006 9:46 PM
# re: Multiple blogs on Subtext

Hi Sergio,
The above instruction is implementing the old .Text way of having the multi blog setup. if you go to blogs.analystdeveloper.com you will see an agregator page. I haven't tried to mark one of the blog as aggregator. I will test this one and let you know here again as soon as possible.

by Gurkan Yeniceri on  4/19/2006 6:38 PM
# re: Multiple blogs on Subtext

Cool,
Know I know how to do it step by step

Thanks for writing, most people don't bother.

by software developers on  8/20/2009 2:45 AM
# re: Multiple blogs on Subtext

Cool,


Hi. I found many problem to configure Subtext Multiblogs. Now I tried to configure 3 blogs how you suggest.(dir,default.aspx,web.config...) The three blogs are working well, but the first, that I have defined as "aggregator" does not aggregate the blogs messages. I have not found useful docs about Subtext Multiblogs config. Do you any suggest, please?
Sergio
Thanks for writing, most people don't bother.

by software developers on  8/20/2009 2:49 AM

Enter your comment here

Comments are moderated

*


*


 (not displayed)


 (will be a link on your name)

*
Bold Italic Underline Blockquote Hyperlink Hyperlink

 

Please add 2 and 6 and type the answer here:

Comment Preview:

 

Search



About me

Hi, my name is Gurkan Yeniceri. I am a software engineer with 8 years of experience in both public and private sectors. I have been generally writing about software engineering and Microsoft technologies since March 2005 on this site.
View Gurkan Yeniceri's profile on LinkedIn

Contact

If you would like to contact with me you can use the contact page here. I will try to respond it in a timely manner (I will try my best). You can also contact with me via Microsoft Live Messenger with the address gyeniceri {AT} hotmail {DOT} com.
If you are one of my Turkish readers, you may want to visit my Turkish blog here.

If you would like to read my site with an RSS reader like RSS Bandit, you may want to use to subscribe.

RSS 2.0

Advertisement


Bookmark this site

del.icio.us digg NewsVine YahooMyWeb Reddit Spurl TailRank BlinkList Furl Shadows blogmarks
    www.flickr.com
    This is a Flickr badge showing public photos from gurkanyeniceri. Make your own badge here.
    There are 133 posts and 88 comments on this site. Other sites also linked it 7 times.

    Advertisement