+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Need ideas for a concept I may have to implement

Need ideas for a concept I may have to implement

12 posts, 0 answered
  1. Cranel Developer
    Cranel Developer avatar
    5 posts
    Registered:
    06 Apr 2010
    24 Jun 2010
    Link to this post
    Hi All,

    I've been working with Sitefinity for about 1 month. I haven't officially rolled out any sites yet, but we are working on some concepts.
    I'm concerned about a concept that was presented yesterday. I think it's pretty straight forward in a AJAX / Static implementation, but I don't know how to use Sitefinity and Telerik controls to get it done.

    Essentially it's a home page banner that has a background image with text on top, and there are 5 slides each slide having a different message. Example similar to. http://www.sap.com/index.epx
    The control is a on a timer so it will rotate through the slide deck, or it can be changed from click events.

    See my image for my example concept
    I need some ideas.
    Has anybody done this before?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    25 Jun 2010
    Link to this post
    Hello Cranel Developer,

    Thank you for using our services.

    You can achieve this with the RadRotator control. An approach similar to this one: Rotator / Image Gallery. What you have to do if you are getting images from images and documents.

    1) Get an IList of the images from an image library using Libraries module API.

    2) Have two rotators on your page. The first one will be of type AutomaticAdvance which will show the large image and rotate them. The second rotator will contain thumbnails of the images and on clicked the thumbnail will set the IninitialIndex of the first rotator.

    I have attached sample project. Note that the bin directory is empty. You have to add the dlls from your website into the bin directory. I have used Sitefinity 3.7 SP3 to build the website and control.


    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Cranel Developer
    Cranel Developer avatar
    5 posts
    Registered:
    06 Apr 2010
    25 Jun 2010
    Link to this post
    Radoslav,

    That's a pretty good example. I just need to change the text message to match the image, but it gets me pretty close.

    thanks
    matt
  4. Johnny
    Johnny avatar
    45 posts
    Registered:
    08 Mar 2009
    12 Oct 2010
    Link to this post
    HI,

    I can´t edit the control in admin mode. Seems to be some script errors. Any idea what´s going wrong?
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Oct 2010
    Link to this post
    Hi Johnny,

    The problem comes form RotatorType.ButtonsOver and the calculation of the width and height of the buttons when you are in edit mode. You can add the following condition in OnInit to escape the error when you are working in the backend

    if (HttpContext.Current.Request.QueryString["cmspagemode"] != "edit" && HttpContext.Current.Request.QueryString["cmspagemode"] != "preview")
           {
               ThumbnailsRotator.RotatorType = Telerik.Web.UI.RotatorType.ButtonsOver;
           }


    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Johnny
    Johnny avatar
    45 posts
    Registered:
    08 Mar 2009
    12 Oct 2010
    Link to this post
    That´s proberly correct but there seem to be more to it. It´s still not able to get into edit mode.

    /Johnny
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Oct 2010
    Link to this post
    Hi Johnny,

    This code does not throw other errors in edit mode.  If you can use the Visual Studio debugger or your browser debugger to narrow down the issue.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Johnny
    Johnny avatar
    45 posts
    Registered:
    08 Mar 2009
    12 Oct 2010
    Link to this post
    Hi,

    This is kind of weird. It seems to throw an error when I drag and drop it on a child page. It works ok when I drop it on a root page.

    Something to to with my use of RadAjaxManager?
    if (this.Page != null && !this.DesignMode)
            {
                RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);
                if (ajaxManager != null)
                {
                    ajaxManager.AjaxSettings.AddAjaxSetting(ThumbnailsRotator, ImageRotator, RadAjaxLoadingPanel1);
                }
            }
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Oct 2010
    Link to this post
    Hi Johnny,

    This code is supposed to escape the edit mode, so you should not get an error from it. You could try using QueryString["cmspagemode"instead of !this.DesignMode

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Johnny
    Johnny avatar
    45 posts
    Registered:
    08 Mar 2009
    12 Oct 2010
    Link to this post
    Hello,

    Tried commenting out the whole thing but no luck. Could you confirm using the control on a child page without any problems editing the control?

    /Johnny
  11. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Oct 2010
    Link to this post
    Hello Johnny,

    Can you please show us the whole control code you are using. We have tried reproducing this with the sample project supplied by us in previous responses, however we were unable to reproduce the issue.
     
    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Johnny
    Johnny avatar
    45 posts
    Registered:
    08 Mar 2009
    14 Oct 2010
    Link to this post
    Hi Radoslav,

    I´ll open up a ticket and send you the code. If we get it sorted I´ll post the code here so others can take advantage of it.

    Cheers,

    Johnny
Register for webinar
12 posts, 0 answered