Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Frost 70 posts 99 karma points
    Oct 21, 2011 @ 19:56
    Frost
    0

    Customizing uBlogsy: remove automatic creation of Comment Pages

    uBlogsy is a fantastic package and we're loving it!

    One implementation that I'm working on today is for someone who doesn't want any comments on their blog. I've removed the code that inserts the comment area into the template, but is there a way to not have a comments page created every time I create a new post?

    Currently, every time I make a new post, a comments page automatically appears underneath it. (See image).

     

    Thanks

  • Jamie Howarth 306 posts 773 karma points c-trib
    Oct 23, 2011 @ 16:50
    Jamie Howarth
    0

    Hi Frost,

    This functionality is built into the core of uBlogsy which will (probably) wire into the Document.AfterNew event of Umbraco - to fire the "create comments page" code after a new post is created.
    To remove this functionality I believe you would have to download, amend, and re-compile the source of uBlogsy. Maybe Anthony will consider this as a feature in the next release?

    HTH,

    Benjamin

  • Frost 70 posts 99 karma points
    Oct 26, 2011 @ 03:39
    Frost
    0

    Thanks for writing! Sounds complicated, but we will take a look at it and update this post. Thank you!

  • Frost 70 posts 99 karma points
    Nov 15, 2011 @ 22:43
    Frost
    0

    It turns out that you have to remove the line in the UmbracoExtensions.cs file which creates the comments folder, then rebuild. Note that this means no comments will be able to be created anymore.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies