Keyword Linkz 1.0 Extension for BlogEngine.Net released

by Kai 20. September 2008 00:31

So, I was talking previously about a spot of trouble I ran in to with the Quicker Links extension for BlogEngine.Net as well as an idea for some additional functionality that Alexander Higgins talked about.  Since I wanted to get my hands dirty with the BlogEngine.Net source anyway, I decided to write an extension to address both items.

Look mah!  Dirty Hands!  :D

I give you Keyword Linkz 1.0, by yours truly.  The intended functionality is as such

  1. Any keywords that you specify in the Extension Settings will automagically be turned into the appropriate links (much like Quick Links)
  2. If you mention any of the CATEGORY names on your site in a post or comment, it will automagically link to the category's page
  3. If you mention any of the TAG names on your site in a post or comment, it will automagically link to the tag's page

It happens in that order of precedence, so if you have a category and a tag with the same title you will get a link to the category page.

Some more points to consider:

  • The extension works for posts and comments
  • The extension is (hopefully) smart enough to ignore all "<>" tags
  • Any pre-existing hyperlinks in your text (i.e. <a href></a>) are (hopefully) ignored
  • The extension never actually saves the modified text (i.e. the links) to the data store.  Instead, it generates the hyperlinks on the fly as the content is being served.  That means if you ever update your keyword list, tags, or categories - all links will automagically be updated "retroactively".  If this becomes a performance issue, I may add some options to specify link generation behavior (i.e. only when a post gets saved).  That would, however, mean that all of your cross-reference links generated by the extension may eventually rot.

This is version 1.0.  While I have done my best to test the extension, there are bound to be issues.  If you use this extension, I would love to hear feedback on performance or any defects you encounter.  If you don't use this extension, but have some ideas on how to improve it, please don't hesitate to tell me.  You won't hurt my feelings. :)

Tell all your buddies.  First time's always free. 

Code attached.  To install, just put the .cs file in your App_Code/Extensions/ folder.  Done.

Get Keyword Linkz Now

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

BlogEngine.Net | Keyword Linkz

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About Me

My name is Kai Steinmann. This is my blog. :)

I'm a video Game Developer by trade.  On my blog you'll find various wanderings about Game Development, Games in general, C# and .NET programming as well as other random stuff that interests me that day. 

Thanks for stopping by.