Breadcrumb control (with code)

Topics: ASP.NET 2.0, Controls
Nov 14, 2007 at 12:06 PM
I have created a simple breadcrumb control if anyone is interested.

Code and example is available at http://www.jonah.carneskog.com/post/Breadcrumb-control-for-BlogEngine.aspx
Nov 14, 2007 at 8:07 PM
Edited Nov 15, 2007 at 6:13 AM

jonahcarneskog wrote:
I have created a simple breadcrumb control if anyone is interested.

Code and example is available at http://www.jonah.carneskog.com/post/Breadcrumb-control-for-BlogEngine.aspx


Whops!
This is embarrassing, but I never thought of using the sitemap...
I re-wrote the code and a new zip can be found on the above link. This time using sitemaps.... sooo much easier!

Thanks to Dave for the heads-up!

Cheers!
- jonah
Nov 15, 2007 at 2:34 PM
There seem to be a bug in the core which prevents sitemap nodes which contain, for example, swedish letters (åäö) to show. The SiteMap.CurrentNode returns null on those pages, which crashes breadcrumbcontrols which do not check for null, and simply does not show that breadcrumb for controls that do the check.

I have added this as an issue, and I hope that there is a simple solution to this.
Mads? Any ideas?

Cheers!
- jonah
Dec 11, 2007 at 11:18 AM
Hi,

Maybe it's obvious, but as a ASP.NET beginner I'm having a hard time implementing the control.

Can you give an example?
Dec 11, 2007 at 12:36 PM

theflowmachine wrote:
Hi,

Maybe it's obvious, but as a ASP.NET beginner I'm having a hard time implementing the control.

Can you give an example?


Sure!
Take a look here http://www.jonah.carneskog.com/post/How-to-implement-the-Breadcrumb-control-for-BlogEngine.aspx

Cheers!
- jonah
Nov 23, 2010 at 3:34 PM

Hi

I am using your code for creating breadcrumb, but it has a bug. No breadcrumb is displayed for a page which has 1 parent node. But if a page has 2parent nodes then its displaying it correctly.

Also i need to create breadcrumb for posts also.

i think it can be done by making a page as a parent for a post, so it will be easy to create breadcrumb.

Since i am using blogengine as a CMS. All posts links are from a page.

jonah please..