add new gallery layout "button" to slideshow gallery

Last post 05-27-2010, 3:21 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  05-26-2010, 10:38 AM 61338

    add new gallery layout "button" to slideshow gallery

    Is there a way to add an icon the the slideshow (similar to the full screen icon) that when clicked, it will take you to the classic gallery viewer?  This has been requested by the client.
     
    Thanks
    EmilyPA
  •  05-27-2010, 3:21 AM 61375 in reply to 61338

    Re: add new gallery layout "button" to slideshow gallery

    Hi emilyPA,
     
    1. Open file "\CuteSoft_Client\Gallery\Layout\SlideShow\Template.htm"
     
    2. Find section below
     
           <td style='width: 90px; vertical-align: middle;'>
     
    change to
     
           <td style='width: 120px; vertical-align: middle;'>
     
    3. Find section below
     
    <img class="BlackSliderButton" id="dng_btn_slider" style='width: 16px; height: 16px'
                        onclick="GalleryBrowser.Execute(this,'ShowSlider');return false;" />
     
    Add a section under the above section, like
     
     <img class="BlackSliderButton" id="dng_btn_slider" style='width: 16px; height: 16px'
                        onclick="GalleryBrowser.Execute(this,'ShowSlider');return false;" />
                    <a  href="default.aspx?Layout=Classic"><img style="border:0" class="BlackSliderButton" src="CuteSoft_Client/Gallery/Theme/Classic/Images/standard-exit.png" />
                        </a>
     
    Note: the above section you need to change the url of the a tag to the test page on your site
     
    4. Create a new page for test, like below
     
    ---------------------------------------------------------------------------------------------------------------------------------------------

    <%@ Page Language="C#" Debug="true" %>

    <%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>DotNetGallery</title>
    </head>

    <script runat="server">
        protected override void OnLoad(EventArgs e)
        {
            if (Request.QueryString["Layout"] != null)
            {
                GalleryBrowser1.Layout = Request.QueryString["Layout"].ToString();
            }
            base.OnLoad(e);
        }
    </script>

    <body>
        <form id="form1" runat="server">
        <DotNetGallery:GalleryBrowser runat="server" ID="GalleryBrowser1" Width="720" Height="400"
            Layout="SlideShow" />
        </form>
    </body>
    </html>
    ---------------------------------------------------------------------------------------------------------------------------------------------
     
    Regards,
     
    ken
View as RSS news feed in XML