Dynamic Creation of Albums

Last post 08-30-2008, 9:28 AM by udelojf. 2 replies.
Sort Posts: Previous Next
  •  06-01-2006, 12:48 PM 19726

    Dynamic Creation of Albums

    I am interested in Purchasing the DotNetGallery product. However, before I do this, I need to know whether it has support for turning prexisting folder structures into albums with sub-albums inside them, and dynamically displaying these results on a home page. Is this the case? I have many different albums but I will not be the one building the site. The client needs to be able to upload images into folders or move folders into the directory and have them then appear in the gallery. Is all of this possible?
  •  06-06-2006, 7:20 PM 19865 in reply to 19726

    Re: Dynamic Creation of Albums

    goober,
     
    It's possible.
     
    First you need to create an album page which contains the following link:
     

    <A href="gallery.aspx?album=/albums/album1">album1</A><br>

    <A href="gallery.aspx?album=/albums/album2">album2</A><br>

    <A href="gallery.aspx?album=/albums/album3">album3</A><br>

    <A href="gallery.aspx?album=/albums/album4">album4</A><br>

    <A href="gallery.aspx?album=/albums/album4">album4</A><br>

     

    In the gallery.aspx page, you need to obtain the album folder from query string and assign it to the gallery control.

     
    For example:
     

    <script runat="server">

        // Obtain the gallery folder from query string

        string album;

        void Page_Load(Object sender, EventArgs e)
        {

            album = Request.QueryString["album"];

            if (album == null || album=="/")

                album = "/albums/nature";

     

            gallery1.FolderPath = album;

     

        }

    </script>
     
    Hope it helps.
     
    Let me know if you have any further questions.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-30-2008, 9:28 AM 43390 in reply to 19865

    Re: Dynamic Creation of Albums

    That's CUMBERSOME!!!
    Why didn't you create an XML file where you store the album locations and have the albums page read the XML? It would make it a lot easier for us who want to implement this tool across different platforms.

    For instance, I am trying to create a FLASH front end to the galleries by reading the XMLs, I was trying to find the XML file that stores the album information so i can display the ALBUM menu in one of the FLASH pages reading from XML.
     
    I am surprised this was developped in such a coogie way considering how great a tool this is
    Filed under: ,
View as RSS news feed in XML