Add-ons

Falafel Content Slider Widget

by Falafel Software Inc. (Sitefinity Partner)
Updated on: May 6, 2011 | 5871 views

Compatibility: Version 4.1 SP1 , Version 4.1
Version: 1.0.0.0
Tags: Free , Content Rotators
Terms Of Use

Download from Publisher
FREE
Introducing the Falafel Content Slider Widget for Sitefinity 4. It will allow you to display any album into a sleek content slider. Simply specify the album name and the widget will do the rest!

Some features include:
  • Dynamically displays image title, author, and description
  • Show all album images with scrolling
  • Optionally display thumbnails
  • Change style through CSS
  • Based on the famous jQuery Cycle plugin

This free widget contains a "Written by Falafel" mark at the bottom of the widgets. If you would like to remove it, please purchase the non-branding option from the Falafel Store. Installation instructions.

 Screenshot:

Falafel Content Slider Widget

15 comments

  • Jim 28 Jun 2011
    07:36 AM
    Tried installing and when I tried adding control to a page, I get the error "Could not load type 'SitefinityWebApp.Widgets.Sliders.ContentSlider'".  My solution is named HCP not SitefinityWebApp.  Is there any way to change this reference, or is it in the DLL?  This is a really cool widget that I would love to use.
  • Basem Emara 28 Jun 2011
    09:32 AM
    @Jim, the namespace in the file "ContentSlider.ascx.cs" determines what the control type value is for the toolbox. Unless you changed the namespace in this file, it should work as is (even though HCP is the name of your solution). You can change the namespace and the control type value if needed. Just remember to rebuild your project after adding the files. Not rebuilding could be another reason for your error.
  • Jim 28 Jun 2011
    10:09 AM
    @Basem, Your response makes sense, but what I am seeing doesn't.  Here are the steps that I took to install the widget.

    1) Copied the Sliders folder to my Widgets directory.
    2) Copied the DLL to my Bin directory.
    3) Added a reference to the DLL.
    4) Built the project.
    5) Added the new tool in Advanced Settings, Toolboxes, etc. 

    After trying to add the widget to the homepage of my project, I still get the error above.  I am running SF 4.1.1395.  Do you have any other suggestions?  Thank you for your help.
  • Basem Emara 28 Jun 2011
    10:29 AM
    I just realized I need to rectify my last statement.. the control type value in the toolbox has to be the exact location of where the widget resides, which is ~/Widgets/Sliders/ContentSlider.ascx like illustrated in the readme. Anyways, your problem could be that you need to include the file into your solution. Show external files within Visual Studio Sitefinity solution and make sure to include the new files.
  • Jim 28 Jun 2011
    10:51 AM
    Basem,  ControlType value was set just as you described.  All files are included as part of my project.  Anything else I can try?
  • Basem Emara 28 Jun 2011
    10:53 AM
    Can you email me your ~/App_Data/Sitefinity/Log file and I will take a look. My email should be included in the readme.
  • Rich 01 Jul 2011
    06:29 AM
    Right, I've just upgraded my Sitefinity to version 4.1.1501.0 as I needed to use the form notification module. Now this module has broken as it doesn't look like its compatible with the latest version:

    "Could not load file or assembly 'Telerik.Sitefinity, Version=4.1.1405.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

    Is there any way of getting this to work in the latest version?

    Thanks
  • Rich 01 Jul 2011
    06:59 AM
    Not to worry - found a workaround :)
  • Ahmed 01 Jul 2011
    02:00 PM
    hi

    i found the problem is the Inherits="SitefinityWebApp.Widgets.Sliders.ContentSlider"

    is not work any idea who to solve

  • Silvain 24 Aug 2011
    03:50 AM
    I guess I found the solution:
    In the 'ContentSlider.ascx' is stated 'CodeBehind="ContentSlider.ascx.cs"'. Change this to 'CodeFile="ContentSlider.ascx.cs"' and it should work in .NET framework 4+
  • Anna 24 Jan 2012
    04:12 AM
    I have sitefinity 4.4 and try to install this Content Slider

    I see the widget on my page template and can add it. But as soon as I setup an AlbumName I get this :

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 69:                     if (this.DisplayThumbnail)
    Line 70:                     {
    Line 71:                         thumbnail = String.Format("<img src=\"{0}\" class=\"thumbnail\" />", Page.ResolveUrl(item.MediaUrl));
    Line 72:                     }
    Line 73: 

    Source File: c:\inetpub\wwwroot\website\Widgets\Sliders\ContentSlider.ascx.cs    Line: 71

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Sitefinity.Modules.Libraries.MediaContentExtensions.ResolveMediaUrl(MediaContent mediaContent, Boolean resolveAsAbsoluteUrl) +110
       Telerik.Sitefinity.Abstractions.AppSettings.GetMediaItemUrl(MediaContent media) +11
       Telerik.Sitefinity.Libraries.Model.MediaContent.get_MediaUrl() +34
       SitefinityWebApp.Widgets.Sliders.ContentSlider.RenderOutput() in c:\inetpub\wwwroot\Website\Widgets\Sliders\ContentSlider.ascx.cs:71
       SitefinityWebApp.Widgets.Sliders.ContentSlider.OnPreRender(EventArgs e) in c:\inetpub\wwwroot\Website\Widgets\Sliders\ContentSlider.ascx.cs:52
       System.Web.UI.Control.PreRenderRecursiveInternal() +103
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272


    Any idea ?
  • Anna 24 Jan 2012
    05:03 AM
    I have sitefinity 4.4 and try to install this Content Slider

    I see the widget on my page template and can add it. But as soon as I setup an AlbumName I get this :

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 69:                     if (this.DisplayThumbnail)
    Line 70:                     {
    Line 71:                         thumbnail = String.Format("<img src=\"{0}\" class=\"thumbnail\" />", Page.ResolveUrl(item.MediaUrl));
    Line 72:                     }
    Line 73: 

    Source File: c:\inetpub\wwwroot\website\Widgets\Sliders\ContentSlider.ascx.cs    Line: 71

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Sitefinity.Modules.Libraries.MediaContentExtensions.ResolveMediaUrl(MediaContent mediaContent, Boolean resolveAsAbsoluteUrl) +110
       Telerik.Sitefinity.Abstractions.AppSettings.GetMediaItemUrl(MediaContent media) +11
       Telerik.Sitefinity.Libraries.Model.MediaContent.get_MediaUrl() +34
       SitefinityWebApp.Widgets.Sliders.ContentSlider.RenderOutput() in c:\inetpub\wwwroot\Website\Widgets\Sliders\ContentSlider.ascx.cs:71
       SitefinityWebApp.Widgets.Sliders.ContentSlider.OnPreRender(EventArgs e) in c:\inetpub\wwwroot\Website\Widgets\Sliders\ContentSlider.ascx.cs:52
       System.Web.UI.Control.PreRenderRecursiveInternal() +103
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272


    Any idea ?
  • George 01 Feb 2012
    02:04 PM
    Hi Anna,

    I investigated the error and it is strictly related to a bug in the OpenAccess that is shipped with 4.4 as it does not populate the Image properties correctly when loaded through an album. 

    However, to make it work, please replace the GetDataSource function with this one:

    private IEnumerable<Telerik.Sitefinity.Libraries.Model.Image> GetDataSource(string albumName)
    {
        using (var manager = LibrariesManager.GetManager())
        {
            return manager.GetImages().Where(s => s.Album.Title.Equals(albumName) && s.Status == ContentLifecycleStatus.Live).OrderBy(i => i.Title).ToList();
        }
    }

    We will update the widget's source code on the marketplace. Thank you for pointing out the issue.
  • DiGMi 03 Feb 2012
    09:21 AM
    @George You are almost there.
    But you've got a small glitch, because the title and alternative title are not being loaded this way.
    A very patchy workaround would be to make a small change to your code:

    1.private IEnumerable<Telerik.Sitefinity.Libraries.Model.Image> GetDataSource(string albumName)
    2.        {
    3.            var manager = LibrariesManager.GetManager();
    4.            return manager.GetImages().Where(s => s.Album.Title.Equals(albumName) && s.Status == ContentLifecycleStatus.Live).OrderBy(i => i.Title).AsEnumerable();
    5.        }
    (Yeah, I know, I'm not disposing the manager, but if you do, when you access the image item it will throw an exception because it will try to load content from disposed object, so let the CLR handle the disposal... :P )

    Now everything works fine.

    DiGMi.
  • Adam 08 Feb 2012
    08:28 AM
    Hi, we tried installing this Content Slider with Sitefinity 4.4 but when we republished the project, we were unable to view 'Pages' or 'Content' in the backend; instead we only got a 'configuration error' dialogue box. Are there other known problems with this widget in 4.4?
    Adam

Add Comment

  • Providing an email will subscribe you for receving comment notifications.

  •