How can I add a property on "Posts" page ?

Topics: ASP.NET 2.0, Controls
Jun 10, 2011 at 10:12 AM

Hello there,

I have recently started to use BlogEngine.NET 2.0 and I am really really happy I found it for my blog.

My question is - I want to add a property to the "Posts" page in addition to the default properties like "Title", "Slug" etc.
Can somebody please help me out with the steps I need to follow for this. I have done this previously in Umbraco but am not sure HOW & IF i can do the same for blogengine?

 

Thanks a lot,

AKV. 

Jun 13, 2011 at 12:32 PM

I have customized BlogEngine 2.0 to add some custom properties to Post and Page objects. You can take a look at how I did it.

http://www.byteblocks.com/post/2011/06/12/Integrate-Advertising-With-BlogEngine.aspx

Look for "Views" property in Post as an example.

Jan 30, 2012 at 11:33 PM
Edited Jan 30, 2012 at 11:35 PM

I just finished documenting the process for adding an attribute for Pages, hopefully someone finds it of some use.

 

Adding a custom property to BlogEngine.NET posts

It covers adding a property to the Page object, as well as changing the UI code to access and load your new property. It should be extremely similar for pages.