Impossible to Use Custom Document Types with uBlogsy?
Based on the (seemingly outdated) documentation, there should be a ublogsy.config file created during intallation. Didn't see one. I did see a number of other config files (ucommentsy.config, and so on).
var posts = PostService.Instance.GetPosts(Model.Content, tag, label, author, searchTerm, commenter, year, month, day, out postCount).ToIPublishedContent(true);
Looks like GetPosts calls DataService.GetLanding, which has a hardcoded (rather than configured) document type (since I am not using that document type, I am getting a null reference):
var landing = node.AncestorOrSelf("uBlogsyLanding");
Is it impossible to use custom document types with uBlogsy? Note that I'm on Umbraco 6.1.6 and uBlogsy 3.0.1.
I was considering making those doctype aliases configurable. It has wider implications for the package though as it complicates things like lucene indexes.
Darn, that's what I suspected. In any event, I decided uBlogsy wasn't going to work for me (I have multiple "blogs" on my site, each which needs a different document, e.g. for restricting child node types), and I've already built the site I was working on.
I was able to use some of uCommentsy though. There were some bugs, but I got it working.
Impossible to Use Custom Document Types with uBlogsy?
Based on the (seemingly outdated) documentation, there should be a ublogsy.config file created during intallation. Didn't see one. I did see a number of other config files (ucommentsy.config, and so on).
Looking at the source code of uBlogsy (https://bitbucket.org/anthonydotnet/ublogsy/src/e8dbdcc696fcda28367b708ad145a100240d9a29/uBlogsy/uBlogsy.BusinessLogic/DataService.cs?at=mvc), it appears that the document types are hardcoded. This is causing some errors for me, such as in the RSS feed (uBlogsyRss.cshtml). I am getting a null reference exception on this line:
Looks like GetPosts calls DataService.GetLanding, which has a hardcoded (rather than configured) document type (since I am not using that document type, I am getting a null reference):
Is it impossible to use custom document types with uBlogsy? Note that I'm on Umbraco 6.1.6 and uBlogsy 3.0.1.
Hi
The rss was alwasy inteded to be under the blog node, as it's a feed for the blog.
The root of the blog has to be a uBlogsyLanding. This was never inteded to be configurable. You can have the blog under your site root.
eg.
Content
- mysite
- blog
The source is here if you need to do something custom:
https://bitbucket.org/anthonydotnet/ublogsy/branch/mvc
I was considering making those doctype aliases configurable. It has wider implications for the package though as it complicates things like lucene indexes.
Darn, that's what I suspected. In any event, I decided uBlogsy wasn't going to work for me (I have multiple "blogs" on my site, each which needs a different document, e.g. for restricting child node types), and I've already built the site I was working on.
I was able to use some of uCommentsy though. There were some bugs, but I got it working.
No worries.
Glad you got something working.
is working on a reply...