New module on EPiCode

by Dan Matthews 10. June 2008 12:13

At the EPiServer Partner Summit I was chatting over dinner to Andy Brodie of Networked Planet. He was remarking that it would be nice within EPiServer to have the capability to show site thumbnails when you hovered over hyperlinks. This intrigued me so when I got back to the UK I did some investigation. There are sites on the internet that do provide a service for this, such as websnapr, but ideally I wanted something that I had full control over.

Time to start coding :)

After some investigation on the web I found a great article about the WebBrowser control and ASP.NET. I tailored it to my needs and got a little thumbnail generator working. I also built a set of JavaScript functions that would show the thumbnails on hyperlinks using DHTML. Next I built a Control Adapter that would pick up EPiServer properties and parse them for hyperlinks. If it found hyperlinks it would insert references to my JavaScript functions. Lastly I wrapped all this in an assembly complete with my Single-Assembly VPP method and using dynamic web resource references.

And so HyperThumbnail was born. Go check it out on EPiCode or see the sample on B&D EPiLabs (hover over the hyperlinks in the content). Deploying to your own site couldn't be easier - simply drag-and-drop the DLL and a .browser file into your website folders.

Tags:

.NET/C# | EPiServer

Comments

6/10/2008 12:53:27 PM #

Dan, this is awesome! I was looking into doing something similar a few months ago and got the thumbnail bit working, but then had to move on to other projects. I really like your packaging and easy deployment! Great idea and great module!

Allan Thraen |

6/10/2008 8:52:04 PM #

Quoting MSDN; "The WebBrowser control is resource-intensive. Be sure to call the Dispose() method when you are finished using the control to ensure that all resources are released in a timely fashion". I noticed SiteThumb.cs doesn't do this explicitly, which means the itty bitty thumbnail committee will linger, right?

bzlm |

6/13/2008 7:49:01 AM #

bzlm, possibly... I reworked that file a few times and might have missed off the Dispose. But it's on EPiCode so someone else can fix that. Maybe you? Smile

Dan Matthews |

6/17/2008 3:59:23 PM #

That's great stuff there.  In addition to being a cool little tool it's also a great example of how you can put tools like this in to neat distributables and hook them in to existing solutions.

It'll be in the EasySearch demo soon!

Andy Brodie |

Powered by BlogEngine.NET 1.5.0.7
Theme by Interakting

Interakting

A full service digital agency offering online strategy, design and usability, systems integration and online marketing services that deliver real business benefits and ensure your online objectives are met.

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar