Creating a nested html list for the Category List in BlogEngineNET - Part One

by Aboo Bolaky 8. November 2008 12:18

I've been following up the success of BlogEngine.Net closely and amongst its successful releases, I noticed that the Category List control has hardly changed at all.  Am I being too fussy here or is it time for a change?  I must admit that BlogEngine.Net is based on a rock-solid platform and has indeed exceeded my expectations in terms of architecture and extensibility.

[Kudos to the BlogEngine Team]

The purpose of this article is to outline the steps required to produce a nested list of categories from BlogEngine.Net.

UPDATE (08th November 2008):

WHERE is the article? I realised that the article is too lengthy to be included as a post. So i decided to create a Page instead : Creating a nested html list for the Category List in BlogEngineNET

I'm currently working on PART TWO of the article. Well, you ask, what is PART TWO about? In a nutshell, it will allow you to bind the Category List to a treeview control (for use in the admin section). 

Please let me know what you think. Cool


UPDATE (12th November 2008):

Part Two has just been published. You can access it here

Tags: ,

.Net | Applications


5/14/2010 4:31:39 PM #


Hi Aboo. Thanks a lot for your post. Spot-on!

I'm also trying to extend the way categories are handled in Blog Engine. I'm not a programmer, which is one of the resons for this comment.

The blog I'm working on (part of an Intranet, I'm afraid) require a way to organize the categories just the way you've done and placed in a horizontal drop-down menu. You can see an excellent example of this over at the excellent site Excellent since you are looking into the fields of CSS and design ;).
But, as I said, I'm not a programmer and got lost pretty quick.
I downloaded the files. Put the Enhanced Category List folder into the Widget folder and EnhancedCategoryList.cs went into /App_Code/Controls/

Getting a Server Error:
Compiler Error Message: CS0117: 'BlogEngine.Core.Category' does not contain a definition for 'ChildCategories'
Source Error:
Line 114:                    if (c != null)
Line 115:                    {
Line 116:                        if (!c.ChildCategories.Contains(cat) && (HasPosts(cat)))
Line 117:                          c.ChildCategories.Add(cat);
Line 118:                    }

Scared beyond belief  at the prospect of implementing Part 2.
Running BE on an Intranet. Hopefully I'll have my own blog up and running soon.
Is there any help to be had?

Magnus Sweden |

5/21/2010 10:23:40 AM #

Auto Marketing Group

Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of presentation. Congratulations on a job well done.

Auto Marketing Group United States |

11/7/2011 6:10:46 PM #

Tout Marrakech

Only wanna pronounce that this is very cooperative, Acknowledges for taking your rhythm to communicate this. “We can’t many be heroes so celebrity has to perch on the hinder further applaud as they go by.” by Volition Rogers.

Tout Marrakech France |

11/13/2011 5:46:00 PM #

Voyage Marrakech

I would like to acknowledge you for the chores you’ve put in penmanship this labyrinth locale. I am hoping the homogeneous lofty-rank website inform from you in the upcoming similarly. In certainty your innovative penmanship masterys has inspired me to win my admit website instantly. Really the blogging is spreading its limbs apace. Your communicate up is a saintly paragon of it.

Voyage Marrakech France |

Tag cloud

Flash Player 9 required.

About Me

I wish I could write something here..
//TODO: ElaborateMe