Single Blog Config Causes Broken Blog URLs

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 34
Points 445
winterminute Posted: Thu, Mar 13 2008 1:15 PM

I posted this in the other forum, but didn't get any response.  I'm pretty sure this is a very simple issue.

I made changes so that clicking on "Blogs" on the homepage would take me directly to a single blog.  This part works, however, the links to the actual posts (on the blog home page) point to the wrong path.  The post links have the following directory structure:
http://winterminute.com/blogs/ourblog/archive/2008/03/09/test2.aspx

However, the correct directory structure should be:
http://winterminute.com/blogs/archive/2008/03/09/test2.aspx

I know this is because of the change I made to my override files and I know enough about CS customization to figure out what the correct URL should be, but I don't know enough to figure out why the blog links aren't following the same logic as the homepage.

Here's my entire siteurl_override.config file:
<?xml version="1.0" encoding="utf-8" ?>
<Overrides>
    <Override xpath = "/SiteUrls/locations/location[@name='weblogs']" mode = "change" name = "type" value = "CommunityServer.Blogs.Components.SingleBlogLocation, CommunityServer.Blogs" />
</Overrides>

Here's the only part of communityserver_override.config that I think matters - I can post the whole thing if needed:
    <Override xpath = "/CommunityServer/Weblog" mode = "new" name = "defaultApplicationKey" value = "ourblog" />

On the blog home page, clicking on the Blog title (at the top of the page) also has the wrong URL format:
Current (but wrong) link:
http://winterminute.com/blogs/ourblog

Correct Link:
http://winterminute.com/blogs

  • | Post Points: 20
Top 10 Contributor
Posts 5,237
Points 48,205
CS Developers

You also need to set the physicalPath setting in the siteurls.config to point to the physical path, even if it is the same as the path.  You can use this:

<Override xpath="/SiteUrls/locations/location[@name='weblogs']" mode="new" name="physicalPath"value="/blogs/"  />

Basically, you want the 'path' to be set to where you want the blog at on the site, so you can add an override to change the path setting to '/blog/', or '/myawesomeblog/', but the physicalPath needs to point back to the original default location of /blogs/.

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

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