New BlogEngine.NET Extension - Toolbox

For years I have found useful tools/tricks from online collections of links and resources and I recently decided I wanted to be able to easily do this in BlogEngine.NET.  Much like the QuickerLinks extension from ckincincy I envisioned collecting my links in one centralized area and being able to quickly distribute them through posts.  However, I also had a few other features in mind...

  • Link Categories
  • Link Category Descriptions
  • Link Descriptions
  • Centralized Links Toolbox Page

Enter my new Toolbox extension!  You can view a live example of this extension on my toolbox page.  I only have one category listed at this time as I plan to release new links each week under a variety of categories.  Let's get our hands dirty now and talk about the setup of this extension.

Part 1 - Deploy the Code
First download the zip file that contains our admin pages, Xml data file, and BlogEngine.NET extension class file.  Deploy each file to their respect location (see the Installation Notes text file in the zip download for more details).  You then need to deploy the following line of code to your Web.sitemap file.


   1: <siteMapNode url="~/admin/pages/Toolbox.aspx" title="Toolbox"  description=""  roles="administrators, editors"/>

That's it! We are now ready to utilize the Toolbox extension.  I will be creating a screencast shortly and will update this post with that video showing how to get started with the extension.  The most important step is creating a new page for your toolbox collection to be displayed on and update our extension settings.  I have created a page titled "toolbox" and you can see in the second screenshot below that the value is entered in my settings.  There is another setting that allows you to toggle whether link descriptions are displayed.  Enjoy!

Admin Page Screenshot
Toolbox Extension Admin Page

Toolbox Extension Settings Screenshot
Toolbox Extension Settings

Download Toolbox.zip (8.64 kb)
Download Screencast (.wmv)

Update: Bug fixed in App_Code/Toolbox.cs for serving multiple links in a post.
Another Update: See my comment below on the bug fixes for the toolbox extension.

[dnk:http://www.dannydouglass.com/post/2008/01/New-BlogEngine-Extension-Toolbox.aspx]

$DNK$

  • Permanent link to this post Permalink 
  • Share this post! Share It! 
  • View this post's comments Comments (19) 
  • RSS Feed for this post's comments Comment RSS
  •    


Comments

Posted on 02.9.2008 09:41 AM #

Paul Tumeltyt

Paul Tumeltyt gb
Hi Danny, nice extension! You are missing a .com from your link to the toolbox page.

I've just implemented the extension, ironically, to create a list of BE.Net extensions! I can't however get the page to display the list. Do I need any code in the page, or does the extension just look for a page named the name in the settings?

Paul.

Posted on 02.9.2008 14:37 PM #

Danny

Danny us
Hi Paul - thanks for picking up that oversite with the link. You are exactly right - the extension is looking for a page to match the title of the page you set in the extension settings. My page is named "toolbox" so I've set the extension setting to "toolbox" and my links show up. =]

Let me know if you have any issues getting it to execute. You do not have to included any body content for the page - it will be overwritten. You may provide a description that will appear at the top of the page before the links.

Posted on 02.9.2008 17:48 PM #

Paul Tumelty

Paul Tumelty gb
Hi Danny,

I got it working just after I posted the message. It seemed to take a few reloads of the page before the old version was thrown out of the cache and the new version was rendered.

I'm compiling a list of BE.Net extensions using this and will be posting it on my site soon!

Posted on 02.12.2008 15:37 PM #

Mike

Mike us
Nice extension. I just added it to our internal developer blog we use for passing links, project updates, etc to the dev team. I did a test post on the including items in posts using the tag, and found 2 issues. The first is the tag I was using was not getting repopulated on EDIT. it is because I was using bad value, BUT it was getting saved and displayed in the grid properly. I was using "DevFusC#2VB" as the tag, when I clicked edit on the item, the textbox only got "DevFusC" put into it, and then that would get stored. The second is the tags are case sensitive, not really an issue per se, but a gotcha more like. I will probably try changing that in the code, but am not a regex expert, or even a beginner, so may be SOL. I can use them, if someone else writes them ;)

Great work on the extension! And thanks!

Posted on 02.12.2008 15:45 PM #

Danny

Danny us
Hi Mike,
Thanks for the information. I will update the extension to ignore case on the tags this evening. That should only take a couple of minutes.

I will also look into the special character issue and test that more thoroughly and come up with a solution one way or the other.

Posted on 02.12.2008 16:29 PM #

Mike

Mike us
I took a look at the code, and the regex does have the option IgnoreCase set on it, so from my limited regex use expreience it should be matching them. It might be somehting in the replacements, not matching but I have to get back to work. ;)

Thanks for the fast response!

Posted on 02.12.2008 18:30 PM #

Danny

Danny us
OK I have fixed a few bugs in the extension. Previously, special characters would break certain fields and case was not being properly ignored when including a tag like "[toolbox:someLINK]" in a blog post. I have fixed those issues. Also, "tags" now require alphanumeric characters.

Thanks for the assistance in locating these issues Mike & Paul!

Posted on 02.13.2008 22:15 PM #

Justin Wendlandt

Justin Wendlandt us
Hey very nice extension. Two things.
1) Convention for BE is to put custom pages / controls for admin stuff inside ~/admin/User Controls/ ...
2) Instead of messing with your sitemap, might as well let the ExtensionManager do it's work for you.

ExtensionManager.SetAdminPage("Toolbox", "~/admin/User Controls/Toolbox.aspx");

Add that to your extension for the toolbox and no sitemap modification needed.

Just thought you would like to know!

Posted on 02.13.2008 22:26 PM #

Justin Wendlandt

Justin Wendlandt us
Ok strike that last comment, I understand what it does now. Yes I wish there was an easier way to have a settings page AND a custom admin page.

Posted on 02.14.2008 11:07 AM #

Danny

Danny us
Hi Justin,
Thanks for that information - I didn't know that was available. I'll make the modification tonight and upload the new files.

Posted on 02.23.2008 10:20 AM #

Gordon

Gordon de
Hi,
"Toolbox" is a very nice extension. But I have a little problem: Everything works fine except that the page with the toolbox isn't displayed after the first click. The visitor has to reload the page or must click a second time on the link. (you can see this behavior here: www.gordon-breuer.de/page.aspx)

Any idea how I can get rid of this behavior?

Thanks and have a nice day,
Gordon

Posted on 03.8.2008 09:08 AM #

Christian

Christian se
Gordon: Did you manage to fix this problem?
I have the same problem and have not managed to find a fix for it. I have rebooted my webserver, cleared the cache and such but the problem remains.


Great extension though!

Posted on 03.10.2008 19:53 PM #

Danny

Danny us
@Gordon/Christian,
This is a bug that was reported to me recently, but due to vacation I have not yet fixed it. I will make the necessary fix and try to release it in the next few days. I apologize for the wait, and thanks for the feedback!

Posted on 03.26.2008 12:52 PM #

test

test es

This is a good extension. And the installation is very simple. Thanks a lot of

Posted on 04.23.2008 12:08 PM #

Codes Web

Codes Web es
thanks you

Posted on 05.8.2008 07:27 AM #

Andre Tagesgeld

Andre Tagesgeld de
Toolbox is really a nice extension, thank you very much!

Posted on 05.25.2008 05:21 AM #

David

David bz
Very interesting website. Keep up the outstanding work and thank you...

Posted on 05.27.2008 16:19 PM #

Siam Sunshine

Siam Sunshine th
Hi danny. Nice blog mate. Keep on creating extensions for BlogEngine.Net I thank you for what you've contributed already, well done mate.

Posted on 06.9.2008 14:31 PM #

Mohammad

Mohammad dk
Helloo. great plugin - can you also use this as a FAQ list and all the links opens as target/id in the same page?

Best regard,
Mohammad

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Posted on 07.4.2008 15:21 PM #


search


AddThis Feed Button

blog categories

blog tags

my pictures

Flickr Gallery Coming Soon!

recent comments   RSS Feed for this post's comments