A Single Blog, the Easy Way

  • A couple of months ago, I wrote about a new easy way to configure a single blog. I attached a couple of examples to this post which should make this common setup super easy. Hopefully by the time we RTW these files will be in the download (or in a more central location).

    Thanks,
    Scott

  • This is great added feature and I can tell you from experience it's very easy to do!

    Rick Reszler
    »Telligent OnDemand


  • My First replay

     

    Santosh

  • I'm getting the forum you requested does not exist.   I assume it is because my appkey is not "Blog" but not sure why it would be anything different.  How can I check?
  • Your app key is normally the same as the folder it created in the blogs folder like for example my app key is wizz and so is the folder name for my blog.

    Rick Reszler
    »Telligent OnDemand


  • Oh awesome thanks so much!
  • Sorry to keep bugging you with this but this fix seems to have disabled ads for the blog displayed.  Am I missing something or is that something not being dealt with in beta?
  • The built in ads support is only for the main site and does not support a single blog and since you are running a blog only site then that's why you can

    't see them.

    You can add your own code to the blog theme itself if you want to. 

    Rick Reszler
    »Telligent OnDemand


  • In order to have a "single blog and single gallery"-setup, I added the following to Scott's communityserver_override.config:
    (If your gallery's appKey is different from "Gallery", you should change it.)

    <Override xpath="/CommunityServer/Gallery" mode="new" name="defaultApplicationKey" value="Gallery" />

    And this to siteurls_override.config:

    <Override xpath="/SiteUrls/transformers/add[@key='##photogallerydirectory##']" mode="change" name="value" value="" />
    <Override xpath="/SiteUrls/locations/location[@name='galleries']" mode="new" name="physicalPath" value="/photos/" />
    <Override xpath="/SiteUrls/locations/location[@name='galleries']" mode="new" name="type" value="CommunityServer.Galleries.Components.SingleGalleryLocation, CommunityServer.Galleries" />

    <Override xpath="/SiteUrls/navigation/link[@name='blog']" mode="remove" />

    I think it's correct (it works), but I'm not completely sure Smile
     

  • I've got my blog set up using Kid Congo theme but if I change  the theme I get the  /msgs/default.aspx?MessageID=6 error on clicking home, blogs, forums, downloads, if I remove the overrides the blog theme works correctly, it only errors when using the overrides
  • Dave
    I get the  /msgs/default.aspx?MessageID=6

    Can you try turning off customErrors and reporting back the actual errror?

    Also, which set of overrides are you using? (site root or folder). The overrides by default assume you have a blog with an appKey of "blog".

    Thanks,
    Scott
     

  • I'm using site root and using all the overrides in the above zip changing my appKey to Dave which is the appKey of my blog,  i'll turn custom errors off tonight and have a look at the error.
  • Scott, you can see the  error if you go to rhodesd.net, I selected the paperclip theme. This is now a fresh install of CS3.0b1 as I deleted the Anon user from the cp by mistake (another bug maybe?)

    Error logged is

     User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.2) Geck
    Path: /themes/blogs/paperclip/postlist.aspx?App=Dave as HTTP GET
    Referrer: /ControlPanel/Blogs/ThemeConfiguration.aspx?theme=paperclip
    Message: Forum Forum Error in the application. does not exist. does not exist.
    CommunityServer.Components.CSException: Forum Error in the application. does not exist.
    at CommunityServer.Components.PermissionBase.RedirectOrException(CSExceptionType csEx)
    at CommunityServer.Components.CSApplicationData.GetSection(String applicationKey)
    at CommunityServer.Components.CSContext.get_SectionThemeData()
    at CommunityServer.Controls.SectionThemeConfigurationDataStyle.get_DataSource()
    at CommunityServer.Controls.SectionThemeConfigurationDataStyle.get_Href()
    at CommunityServer.Controls.Style.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at CommunityServer.Controls.Head.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer)
    at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.Page.Render(HtmlTextWriter writer)
    at CommunityServer.Components.CSPage.Render(HtmlTextWriter writer)
    at CommunityServer.Components.CSFormPage.Render(HtmlTextWriter writer)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     

  • Dave
    This is now a fresh install of CS3.0b1

    If this is a fresh install, do you still have a blog with the applicationKey "Dave"?

    This error should only occur if the blog with the default application key no longer exists.

    Ben Tiedt's Blog

  • Yes, I recreated the blog with the appKey of Dave as before, like I say it works fine on Kid Congo, just not on other themes,