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).
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?
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.
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
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
Thanks for writing! Sounds complicated, but we will take a look at it and update this post. Thank you!
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.
is working on a reply...
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.