As part of my migration plan from Community Server to BlogEngine.Net, I wanted to have a similar functionality to Community Server snippets for blog posts. This has been a good opportunity to address some of the limitations about the Community Server version that I didn't like.
My version of snippets includes the following additional features:
- ability to inject an html fragment rather than being restricted to a link and a description
- ability to identify text without having to surround the text with [] characters
- Support snippets in posts, pages and comments
This functionality gives me more flexibility. I prefer fragments as I want to inject specific html rather than a formatted value determined by the system (for example, I want target="_blank" in my snippet links). I also wanted to be able to write posts in a more fluent way (no [] required) and I get the additional benefit of snippet support for comments.
There is only one disadvantage with this design. For commenter's, there is no indication regarding the snippets that are available. However, given that brackets are not required, common usage of acronyms will still add value for comments.
The extension can be downloaded from here and source code can be viewed here. Please provide any feedback to the CodePlex site.
Tags: BlogEngine.Net