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

Forums / General Discussions / How would you solve this?

How would you solve this?

5 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    04 Mar 2009
    Link to this post
    Hi all,

    I've a question: I'm going to transfer a Joomla website to Sitefinity. The website has pages with photo's that are placed inside a table.

    You can look at the website here:
    Website example

    Does anyone has an idea of how to convert this to Sitefinity? I don't want to use this same technique, as it is not very user-friendly. Of course I want to use the build in library functionality. I think with the new Views technique of Sitefinity 3.6 it would be possible to create a sort of view that can show these pictures. But maybe a simple Template/Masterpage would do.

    How would you solve this?
    Hope to hear some thoughts.

    Thanks,
    Daniel

  2. Dido
    Dido avatar
    149 posts
    Registered:
    24 Sep 2012
    04 Mar 2009
    Link to this post
    Hi Daniel,

    I believe that two very simple user controls would do.

    The first would represent an image that, if not hovered with the mouse, would display a default image (that is the same for all of them). If it is hovered with the mouse, however, it would show the image from an ImageUrl. As a final step, you could make a ControlDesigner for this control. The functionality would be done in JavaScript or via AJAX.

    The second control would be just a place-holder, to simply arrange the images. You could use even a table here, or generate it dynamically based on the number of images placed inside.

    For the site as a whole - yes, I would use a template and a theme, then just plug in different content in every page.

    If you have any more questions, please feel free to ask.

    Regards,
    Dido
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    04 Mar 2009
    Link to this post
    Hi Dido,

    Thanks for the ideas. Very helpful. I'm still not very deep into developing with Sitefinity, so some of the things you describe are new to me, like the ControlDesigner stuff. Anyway, I just have to start with it. I think I have a good starting point now.

    In the Joomla website, the user chooses which photo she wants to be hidden and then it automatically has the OnMouseOver functionality. So, I think that functionality should be in that ControlDesigner (property: visible). Am I right?

    Daniel
  4. Dido
    Dido avatar
    149 posts
    Registered:
    24 Sep 2012
    04 Mar 2009
    Link to this post
    Hello Daniel,

    You could read about controls in general in the Dev manual, namely - Implementing Controls Overview, and about Control Designers - Implementing Control Designers.

    About the invisibility, it is really very simple - you work with the standard DOM image. Firstly, find the element with document.getElementById. Then you either set its src attribute to a predefined "blank" image, or change its style (again via JavaScript). For a very basic example, see how an image gallery can be done in css.

    Making this in a user control is just a preference. Besides, it is just a matter of placing an <asp:Image>, writing a few lines of javascript and copying a few lines of css.

    Let us know if we could help you further.

    Greetings,
    Dido
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    04 Mar 2009
    Link to this post
    I understand that this whole control thing is completely different with SF 3.6, right? I think I'll wait for that documentation to finish. Thanks! Daniel
Register for webinar
5 posts, 0 answered