Featured Post Rotator

Topics: Controls
Dec 18, 2010 at 10:44 AM

Michael Baird wrote an extension to feature selected posts on your front page... nice, trouble is it doesn't work in BE 2.

Anybody know how to get it working?

Thanks in advance.

Coordinator
Dec 18, 2010 at 7:15 PM

I think you mean this extension.  If so, there's just a few small adjustments needed......

FeaturedPostsRotator.cs (in the Extensions\FeaturedPostsRotator folder)
   - At the top, add:  using BlogEngine.Core.Web.Extensions;

FeaturedPostsRotatorControl.cs (in the Extensions\FeaturedPostsRotator folder)
   - At the top, add:  using BlogEngine.Core.Web.Extensions;
   - Change the namespace from "namespace Controls" to "namespace App_Code.Controls"

Admin.aspx (in the User controls\FeaturedPostsRotator folder)
   - At the top, change MasterPageFile="~/admin/admin1.master" to "MasterPageFile="~/admin/admin.master"

Admin.aspx.cs (in the User controls\FeaturedPostsRotator folder)
   - At the top, add: using BlogEngine.Core.Web.Extensions;

Lastly, but probably not required, in the Admin.aspx page, I disabled the "FileUpLoadValidator" RegularExpressionValidator.  It wasn't allowing me to upload a GIF because the regexp pattern didn't match.

Dec 18, 2010 at 8:40 PM

Thanking you ever so kindly, that worked a treat... suitably impressed.