Dave Burke : Freelance .NET Web Developer specializing in Online Communities

My Introduction to BlogEngine.NET Extensions

One of the things I always liked about Community Server was its global event model, where you can hook into various events like User.OnCreate() to extend system functionality.  Well BlogEngine.NET has the same support in Extensions.  The list of exposed BE.NET global events as well as how to create an extension is located here in the BlogEngine.NET wiki.

I only wrote one extension for the initial release of DBVT2008, a simple text parser to mimic Community Server's Blog Snippets in which [strings-in-brackets] are replaced with pretty much anything.  I use Blog Snippets on my Nordic Track book reviews like the one I posted yesterday.  At the bottom of that post is my signature Nordic Track thumbnail which I display by simply placing "NordicTrackPic" in brackets.  Here's the class file. 

As a sidebar in praise of the VS2005+ Website Project model used by BE.NET, I realized I had a slight bug in my snippet extension code.  The thumbnail image wasn't displaying in my newsreader because I didn't enter the full url path.  I downloaded the .CS to my laptop, made the fix in Textpad, uploaded it back to /app_code/extensions and I was done.  No compile or even having to fire up Visual Studio.  Quick and easy.

Comments (2) | Post RSS RSS comment feed

Posted on 6/20/2008 5:57:05 PM by Dave Burke
Categories: BlogEngine.NET
Tags:

Related posts

Comments

6/21/2008 11:23:30 PM Permalink

Just downloaded the BlogEngine.net ... super easy to get it up and running (using the default xml provider) ... so far I'm impressed.

Jason Haley United States |

6/22/2008 7:45:09 AM Permalink

Glad to hear it, Jason.  I think you'll like how light-weight and fast it is, especially Mads' Standard theme.  And of course there's the hidden captcha... Smile

Dave Burke United States |

Comments are closed

This site was built with the Sueetie .NET Open Source Community Framework. Learn more about Sueetie at Sueetie.com.