RelativeLink() & AbsoluteLink() BlogEngine.Core.Category..

Topics: Business Logic Layer
Jun 18, 2009 at 10:02 AM

I Would like to suggest a simple feature to be added to the BlogEngine.Core.

In the same was that the BlogEngine.Core.Page has Relativelink() and AbsoluteLink()  functions, it would make sense that the BlogEngine.Core.Category object also had these methods.

If you look in the CategoryList widget, its having to do all the hard work its self. would be better for the Category Object to expose these..

Something a bit like this....


        public string RelativeLink
                string slug = Utils.RelativeWebRoot + "category/" + Utils.RemoveIllegalCharacters(this.Title) + BlogSettings.Instance.FileExtension;
                return slug;

        public Uri AbsoluteLink
            get { return Utils.ConvertToAbsolute(RelativeLink); }







Jun 20, 2009 at 8:33 AM

Thanks ... there are now RelativeLink, AbsoluteLink, FeedRelativeLink and FeedAbsoluteLink properties in the Category class as of BE

Jun 20, 2009 at 9:06 AM

Excellent! i can unleash my new widget on the rest of the world now :)