Copied to clipboard

Flag this post as spam?

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


  • Ben McKean 272 posts 549 karma points
    Nov 04, 2011 @ 11:23
    Ben McKean
    0

    GetDefaultDictionary

    I'm not sure if this is a bug or more of a feature request. Basically I've extracted some of the functionality from uBlogys to create blogs within my installation. It all worked fine until I published a post. The error occurred when the Comments node was being created. I figured out that the error message I received was to do with the GetDefaultDictionary() method. The Comments node needed to have all the properties:

                Dictionary<string, object> dictionary = new Dictionary<string, object>() 
                        {
                            { "uBlogsyContentTitle", string.Empty },
                            { "uBlogsyContentBody", string.Empty },
                            { "uBlogsySeoKeywords", string.Empty},
                            { "uBlogsySeoDescription", string.Empty},
                            { "umbracoNaviHide", 0},
                            { "umbracoRedirect", string.Empty},
                            { "umbracoUrlName", string.Empty},
                            { "umbracoInternalRedirectId", string.Empty},
                            { "umbracoUrlAlias", string.Empty}
                        };
                return dictionary;

     When I add these properties to my Comments Doc Type it works fine. My request or bug report is should the Comments or Comment doc types actually have these properties as I'm not sure if they're relevant? Could the above method be amended to check when the node you're dealing with actual has these properties?

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Nov 05, 2011 @ 00:35
    Anthony Dang
    0

    Hey Ben

    Well it's some future proofing.

    The comments node has these properties just in case you want to make use of them. Eg. if you want to make a template (masterpage) for the comments nodes which displays JUST the comments.

    You do have the option of hiding those properties using http://our.umbraco.org/projects/backoffice-extensions/uhidesy

     

  • Ben McKean 272 posts 549 karma points
    Nov 07, 2011 @ 10:48
    Ben McKean
    0

    I've decided to leave those properties in there. Won't harm it and like you say, future proof.

Please Sign in or register to post replies

Write your reply to:

Draft