BlogEngine.NET Extension: Footnotes

6. July 2010

I finished this extension up last night but I was reluctant to deploy it to my own blog given that there was a major flamewar in progress on my recent post about Why .NET Adoption Lags Among Startups. Having actually tested this extension on that very post, I feel confident sharing my latest BlogEngine.NET extension with you: Footnotes!1

Once you've installed it, all you have to do to add a footnote is to click on the new "footnote" button visible on your TinyMCE text editor:

Once you click it you'll see a pop-up window - just type in whatever you want2 to include in your footnote (no special syntax required) and it'll automatically be inserted into your blog entry.

And this is what your footnote will look like once it gets rendered by the plugin: 

That's it. Pretty simple, no?

Modifying Footnote Styles

If you need to modify the default styles for your footnotes3, you can do so by modifying User controls/footnotes/be-footnotes.css.

Alternatively, you can also specify your own stylesheet location for footnotes if you wish via the Extension's settings:

Installation Instructions

The only special instructions for installing Footnotes for BlogEngine.NET are thus:

  1. If you are already using the SyntaxHighlighter extension for BlogEngine.NET, make sure you grab the Footnotes 1.0 (SyntaxHighlighter) download below instead of the normal one - otherwise his handy TinyMCE plugin will disappear from your text editor!
  2. If you do not have SyntaxHighlighter installed, grab the Footnotes 1.0 (Normal) version below - otherwise you might get an annoying JavaScript error every time you load up TinyMCE.

For both versions of BlogEngine.NET Footnotes: simply extract the folders onto the root of your blog and everything will slip into its appropriate place.

Downloads

Footnotes 1.1 (SyntaxHighlighter).zip (7.59 kb) 

Footnotes 1.1 (Normal).zip (7.59 kb) 

If you run into any problems with Footnotes, please leave a comment on this page and I will respond as quickly as possible.

Update:

Whoops! Fixed a bug which prevented BE.NET's syndication feed from displaying properly. This has now been fixed in the 1.1 release of Footnotes.


1A lot of credit is due to Ruslan Tur for his awesome blog post on How to Create a Custom Plugin for TinyMCE. I used his code as a basis for developing my own plugin and he's quite masterful with both C# and JavaScript.

2Actually, not WHATEVER you want. The only character to avoid is either of the square brackets since the extension will think you're trying to close the footnote.

3I had to modify the default styles for footnotes for my own theme here - mostly I just had to do some tweaking in order to make the footnotes appropriately smaller than my posts' body text styles.

If you enjoyed this post, remember to subscribe to my RSS feed!

BlogEngine.NET ,

BlogEngine.NET Extension - Remind Your Readers to Subscribe to Your RSS Feed with SubscribeRemind

15. May 2010

One of my favorite WordPress plugins dating all the way back to when I first started blogging is Subscribe-Remind (WordPress) - it simply appends a small RSS subscription reminder to the footer of every blog entry for your readers! The reminder reads something like this:

If you enjoyed this post, make sure you subscribe to my RSS feed!

Simple enough, right? I've made a port of this popular WordPress plugin for BlogEngine.NET, SubscribeRemind, which does exactly the same thing as its WordPress counter part. It appends a small subscription reminder at the footer of every blog post using the RSS feed specified through the BlogEngine.NET settings.

If you're using an alternate RSS address (i.e. FeedBurner), the extension will automatically use that one as the target - it uses whatever RSS feed target you've specified in your BlogEngine.NET settings. 

I've found that adding an RSS susbscription reminder at the footer of all of my blog entries has historically increased my total number of subscribers, so I highly recommend that you add this Extension to your blog!

Download: SubscribeRemind1.1.zip (1.66 kb) 

Customizing the Reminder 

You can change the reminder call to action yourself using the BlogEngine.NET extensions manager. Simply go to the Extensions page and click on the "edit" button for SubscribeRemind's settings:  

If you want to change the reminder call to action / message that appears at the bottom of every blog post, you can simply modify the value shown below:

Hit the update button after you've made your changes and placed the [link] [/link] tags around your desired anchor text.

 

The instructions included with the ExtensionsManager are straight-forward.

Download: SubscribeRemind1.1.zip (1.66 kb) 

If you have any questions, suggestions, or comments about SubscribeRemind, please leave them below and I'll answer them as soon as I can.

If you enjoyed this post, remember to subscribe to my RSS feed!

BlogEngine.NET , ,