More in this section

Visual module

5 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    21 Apr 2010
    Link to this post
    Hi all,

    I'd like some input on how to create the following functionality:

    On my homepage I want to show a visual (an image, or flash or video). This visuals I'd like to store in a library.
    For each visual I'd like to save the following properties:

    - Title (title of the visual for inside the tooltip)
    - Description (description for internal use)
    - Link to a page (link to a page inside sitefinity or external)
    - The image itself
    - Preferred (a checkbox which makes the visual preferred over other visuals)
    - Buttontext (text on a button that is showed on an absolute position inside the visual)


    On every page refresh I'd like the visuals to show up random.

    So, should I extend the custom library for this or create a new module or create a UserControl?
    I'm figuring out what would be best.

    An example is here on the homepage of the EGZ. (http://www.evangelischegemeente.nl), which is made in php.
    I think this can be done in Sitefinity, but I'm not sure what is the best to start.

    Any help would be appreciated!

    Thanks,
    Daniel

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    21 Apr 2010
    Link to this post
    Hello Daniel,

    If you want to show image, video or flash you need a custom control/class library that implements logic which supports all these formats. You could have a control designer from where you cold switch the presentation mode and the data provider - Image mode, Video Mode, Flash mode. Each mode should have its own template. It would be similar to ImageGalley control.

    The template for all modes will be almost the same. The difference will be only in the type of the controls that you have to use. For instance, for Images you need to have one big image and three small at the bottom of the control. You could expose selector as a property which will be used to set the main - big image. The three images will be shown by a repeater that adds the last 3 images uploaded to the selected library.

    All the best,
    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.
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    21 Apr 2010
    Link to this post
    Hi Ivan,

    Thanks for your reply.
    How should I store the properties for an individual image? Or should I make a custom module with it's own table?

    -Daniel-

    PS: the example is showing one big and three smaller images. I meant only the big one :)
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    21 Apr 2010
    Link to this post
    Hello Daniel,

    You should have public property that sets only the big image. It is not necessary to have a custom table for this property value.

    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.
  5. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    21 Apr 2010
    Link to this post
    If I want to start with only images, I could also extend the library properties, right?
    Then in a UserControl I could read the images from that library through the API.

    Okay, I think I'm not quite yet there where it comes to customize Sitefinity :(.
    Is there an example that you know of that does the same?

    -Daniel-
Register for webinar
5 posts, 0 answered