Corporate Headquarters (972) 407-0688 1 (877) 492-9484
International Headquarters +44 (0)203 178 3010
Hey, Chris!
I blogged on this and how I supported multiple blogs as well as the home page. With Jayson's and Keyvan's input I think we covered everything you should need to configure CS2007 the way you want it.
http://dbvt.com/blog/archive/2007/03/22/my-cs2007-configs-for-dbvt-com.aspx
Regards,Dave
Hi Dave,
Thanks for the feedback and the pointer to your post! As usual, your support is much appreciated.
I implemented the following siteurls_override.config:
<?xml version="1.0" encoding="utf-8" ?><Overrides> <Override xpath = "/SiteUrls/locations/location[@name='weblogs']" mode = "change" name = "path" value = "/" /> <Override xpath = "/SiteUrls/locations/location[@name='weblogs']" mode = "new" name = "physicalPath" value = "/blogs/" /> <Override xpath = "/SiteUrls/locations/location[@name='weblogs']/url[@name='webloghome']" mode = "update"> <url name = "webloghome" path="blog" pattern="default.aspx" physicalPath="/themes/default/common/" vanity="{2}" page="home.aspx" /> <url name = "feedshome" path="feeds" pattern="default.aspx" physicalPath="/themes/default/common/" vanity="{2}" page="home.aspx" /> </Override></Overrides>
On my dev machine, the site homepage (http://xboxbloggers.net) now works and the individual blogs (http://xboxbloggers.net/monkeynuts360 and http://xboxbloggers.net/craign) work fine but now the blogs homepage (http://xboxbloggers.net/blogs) doesn't. I get a Forum Not Found error. I guess it is trying to look for a blog with an appkey called 'blogs' which does not exist.
Any ideas?
Below is part of the CS 2.1 config file I am currently using on the site. Maybe someone can see something in the code below and can advise on what I need to change in the above siteurls_override.config.
<locations> <!-- name: look up value path: site location exclude: should any path/link in this location be excluded from Url ReWriting? changes to exclude will require an application restart --> <location name="themes" path="/themes/" exclude = "true" /> <location name="message" path="/msgs/" exclude = "true" /> <location name="forums" path="/forums/" />
<location name="reader" path="/reader/" /> <location name="roller" path="/roller/" /> <location name="controlpanel" path="/controlpanel/" exclude = "true" />
<location name="user" path="/user/" exclude = "true"/ <location name="utility" path="/utility/" exclude = "true"/> <location name="freetextbox3" path="/freetextbox3/" exclude = "true"/ <location name="search" path="/search/" exclude = "false"/> <location name="content" path="/content/" /> <location name="ink" path="/ink/" /> <location name="members" path="/members/" physicalPath="/" /> <location name="badges" path="/badges/" physicalPath="/" /> <location name="tags" path="/tags/" physicalPath="/" /> <location name="galleries" path="/photos/" /> <location name="files" path="/files/" /> <location name="weblogshome" path="/blogs/" exclude="true" /> <location name="weblogs" path="/" physicalPath="/blogs/" /> <location name="common" path="/" /></locations>
<!-- **************** Note, the ^ symbol is used in place of the & symbol used in the query string the value is replace when the SiteUrls.config file is processed. **************** -->
<!--- ROOTS --><url name="home" location="common" path="" /><url name="forumshome" location="forums" path=" default.aspx" /><url name="webloghome" location="weblogshome" path="default.aspx" /><url name="galleryhome" location="galleries" path=" default.aspx" /> <!-- End Roots -->
I got the CS 2.1 code in an email from another CS admin who had his site configured the same in CS 2.1 but it looks like he is also struggling to keep both the site home page as well as the blog home page in CS 2007. His site is http://dotnet.org.za if anyone is interested.
Thanks
Chris
http://forum.techbuzz.co.za - Your technology community. Since '09.
Anyone got any ideas?
Hi new to community server, and trying to this up as a single blog, not having much success.
i downloaded the override package from community server, followed the instructions changed out the appkey name and uploaded to the root as directed, but it doesn't seem to work.
below is what i changed, because my appkey was not named "blog" i changed it like the instructions said. but nothing. what am i doing wrong?
<Override xpath = "/CommunityServer/Weblog" mode = "change" name = "blogFileStorageLocation" value = "~/images" /> <Override xpath = "/CommunityServer/Weblog" mode = "new" name = "defaultApplicationKey" value = "app key of my blog" />
Also the instructions really don't say anything about the siteurls_override.config page. does anything need to be altered there?
anyway, when i navigate to the site it still just takes me to the default community server home page. I'm a little confused.
any help would be greatly appreciated.
thanks
Rick
Chris Lotter: On my dev machine, the site homepage (http://xboxbloggers.net) now works and the individual blogs (http://xboxbloggers.net/nanozune and http://xboxbloggers.net/craign) work fine but now the blogs homepage (http://xboxbloggers.net/blogs) doesn't. I get a Forum Not Found error. I guess it is trying to look for a blog with an appkey called 'blogs' which does not exist. Any ideas? Below is part of the CS 2.1 config file I am currently using on the site. Maybe someone can see something in the code below and can advise on what I need to change in the above siteurls_override.config.
On my dev machine, the site homepage (http://xboxbloggers.net) now works and the individual blogs (http://xboxbloggers.net/nanozune and http://xboxbloggers.net/craign) work fine but now the blogs homepage (http://xboxbloggers.net/blogs) doesn't. I get a Forum Not Found error. I guess it is trying to look for a blog with an appkey called 'blogs' which does not exist.
In your sample CS2.1 cs.config file, you've defined a new location,
<location name="weblogshome" path="/blogs/" exclude="true" />
to render the old blogs page. You probably also removed <url name="webloghome" /> from the <location name="weblogs" /> node and added it to the <location name="weblogshome" />. This should give you what you want (a home page and a /blogs/ page with blogs in the root).
This can be accomplished by replacing your <Override /> referencing "webloghome" with the following
<Override xpath="/SiteUrls/locations/location[@name='weblogs']/url[@name='webloghome']" mode="remove" /><Override xpath="/SiteUrls/locations" mode="add"> <location name="weblogshome" path="/blogs/" exclude="true" themeDir="blogs"> <url name ="webloghome" path="" pattern ="default.aspx" physicalPath="##themeDir##" vanity="{2}" page="postlist.aspx" /> </location> </Override>
rdmitruk: i downloaded the override package from community server, followed the instructions changed out the appkey name and uploaded to the root as directed, but it doesn't seem to work.
When using the siteurls_override.config file, you must restart Community Server for the changes to take affect -- you can do this by restarting the application pool, editing the web.config file, ...
Did you restart Community Server?
no, i didn't know i had to. I'll try that and see if it works. there's nothing else in any of the overrides that needs to be updated either is there?
rdmitruk:there's nothing else in any of the overrides that needs to be updated either is there?
Not that I'm aware of -- I checked the initial posted file and didn't see any other changes that needed to be made.
Ben,
Thanks a million! I will give this a shot later and will let everyone know.
Cheers
Ben Tiedt: This can be accomplished by replacing your <Override /> referencing "webloghome" with the following <Override xpath="/SiteUrls/locations/location[@name='weblogs']/url[@name='webloghome']" mode="remove" /><Override xpath="/SiteUrls/locations" mode="add"> <location name="weblogshome" path="/blogs/" exclude="true" themeDir="blogs"> <url name ="webloghome" path="" pattern ="default.aspx" physicalPath="##themeDir##" vanity="{2}" page="postlist.aspx" /> </location> </Override>
Nope. It's still not working. I am getting a blank page now which is better than the forum not found error. I think we are almost there...
Below is my full config:
<?xml version="1.0" encoding="utf-8" ?><Overrides> <Override xpath = "/SiteUrls/locations/location[@name='weblogs']" mode = "change" name = "path" value = "/" /> <Override xpath = "/SiteUrls/locations/location[@name='weblogs']" mode = "new" name = "physicalPath" value = "/blogs/" /> <Override xpath = "/SiteUrls/locations/location[@name='weblogs']/url[@name='webloghome']" mode="remove" /> <Override xpath = "/SiteUrls/locations" mode="add"> <location name="weblogshome" path="/blogs/" exclude="true" themeDir="blogs"> <url name ="webloghome" path="" pattern ="default.aspx" physicalPath="##themeDir##" vanity="{2}" page="postlist.aspx" /> </location> </Override></Overrides>
Chris,
I feel I'm not helping much here, but have you tried making the changes directly to the siteUrls.config. You don't NEED to use an siteurls_override.config. :-)
Chris Lotter: Nope. It's still not working. I am getting a blank page now which is better than the forum not found error. I think we are almost there... Any ideas?
The attached siteurls_override.config file will do what you want -- I had to ensure that the weblogshome location was *before* the weblogs location. I also moved *all* of the aggregate pages into the weblogshome location.
This siteurls_override.config file will place blogs at the root of the site, but continue to place the aggregate blogs pages at /blogs/default.aspx and will continue to serve the main home page at /default.aspx
Hi Ben.
I have tested your solution and it works great!
To you and the rest of the community - Thanks a lot for all your help.
Regards,
I have uploaded Scott files to server and now while clicking on blog post I get error message "page not found". http://trythetaste.com/
Could anyone help me? I am trying to configure CS as one blog web page, unfortunately one week passed but I still can't find solution.