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

Gallery List?

10 posts, 0 answered
  1. Ricardo
    Ricardo avatar
    11 posts
    Registered:
    21 Jan 2009
    14 May 2009
    Link to this post
    Hello,

    I was wondering if there is a way to display a gallery list. I want to have a page where all the Image Galleries can be displayed (probably with the first image as the cover), a user would click on the cover to see the images within the gallery.

    Is this somethign that exists or would I have to write my own control for it?

    Please let me know,
    Thanks,
    -Ricardo
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 May 2009
    Link to this post
    Hi Ricardo,

    We do not have this implementation out of the box.

    You can do the following:
     Create a control that inherits Composite control. Then add enum Displaymode where you will have two modes - Libraries and Items.
    In a user control - that will be your template you should add one repeater - that will lists your libraries and in another holder where you should have the ImageGallery control ( which displays gallery items).
    In your custom control that inherits composite control you should check the current display mode and depending on it you will hide/show the repeater with the libraries and image Gallery control. You can also add "back" button when a user is in items mode which will return to libraries mode when clicked. If a gallery is selected you need to associate the parentIDs array with library ID to return the files for the specified library.

    Guid[] parentIDs = new Guid[listofAllLibrries.Count]; 
        for (int i = 0; i < listofAllLibrries.Count; i++) 
        { 
            ILibrary lib = listofAllLibrries[i] as ILibrary; 
            parentIDs[i] = lib.ID; 
        } 
     


    All the best,
    Ivan Dimitrov
    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. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    17 Jun 2010
    Link to this post
    Hi is there an existing control for this that we could just simply download and tweak upon to suit our preferences if ever? Thanks.
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Jun 2010
    Link to this post
    Hi jkregala,

    We do have an Image Gallery control it can be found in Most Popular section is the Sitefinity toolbox.

    Sincerely yours,
    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
  5. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    17 Jun 2010
    Link to this post
    Hi Mr. Radoslav, yep, I know that control. I'm looking for a control as described exactly by Mr. Ricardo in the previous post:

    "I want to have a page where all the Image Galleries can be displayed (probably with the first image as the cover), a user would click on the cover to see the images within the gallery."


    So the flow would be like this:

    Main Menu
      - Image Galleries
         - Nature and the Environment (shows all image libraries under this category, need a control for this)
            - Desert Fauna (the actual image library control is here)

    Thank you! :)
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    18 Jun 2010
    Link to this post
    Hi jkregala,

    Unfortunately such a control does not exist out of the box. It has to be created as a custom 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
  7. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    21 Jun 2010
    Link to this post
    Nobody has made a control like that yet?
  8. Rok
    Rok avatar
    7 posts
    Registered:
    08 Apr 2008
    03 Dec 2010
    Link to this post
    I guess someone has to :), i really wonder how can anyone imagine having gallery without this functionality.

  9. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    06 Dec 2010
    Link to this post
    Hi Rok,

    You can achieve this with a control similar to the one in this RadRotator demo. Attached is sample code. Please note that this is just a sample illustrating how to achieve this. It gets all images from the system so it would be a bit slow.

    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
  10. Rok
    Rok avatar
    7 posts
    Registered:
    08 Apr 2008
    06 Dec 2010
    Link to this post
    Thx Radoslav,

    I think i solved it even better. I will post my gallery (it supports multiple galeries for multiple private groups) and forum solution as soon as the project os officialy completed (should be tomorow).

    Thx anyway

        Rok
Register for webinar
10 posts, 0 answered