three questions involving the various page levels

Last post 04-26-2005, 8:05 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  04-25-2005, 9:30 PM 6130

    three questions involving the various page levels

    Hi,

    As I understand it, there are three page levels in this design:

    A.  Main page displaying all albums (in the demo, the one with a 2x2 table showing Animals, Babies, Nature, Birds)
    B.  Album image index page showing all images for a particular album
    C.  Individual image view, with optional slideshow playing buttons

    My questions involve that understanding of the heirarchy.

    1.  I am wondering if this code generates the main page that displays all the albums (page A) or if I have to hand-code it.  If it does, how do I tell it which directories are to be considered album directories?
    2.  Is there a way to suppress the title display on page B?  Can I put it beside the buttons, instead of over them?
    3.  Can the Help URL target be anything other than _top?
    4.  What exactly does RestrictUploadedImageDimension do?  Ideally I would like to force uploads to be 640x480, or 480x640, and I'd be happy to enforce a "both dimentions must be 640 or less" policy.  Is this what it does?

    Thanks,
    Tom


  •  04-26-2005, 7:54 AM 6132 in reply to 6130

    Re: three questions involving the various page levels

    Tom,

     tommyclifton wrote:


    1.  I am wondering if this code generates the main page that displays all the albums (page A) or if I have to hand-code it.  If it does, how do I tell it which directories are to be considered album directories?

     
    Yes, you have to hand-code it. The DotNetGallery itself doesn't have album function.
     
    For example:

    You have an album:

    <A href="show.aspx?album=album1"><B>Animals</B></A>
     
    -----------------------------------------------------------------
    <A href="show.aspx?album=album2"><B>Nature</B></A>
    <A href="show.aspx?album=album4"><B>Birds</B></A>
     
    In the show.aspx:
     
    <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=="/")
                gallery1.FolderPath = "album1";
            gallery1.FolderPath = album;
       }
    </script>
     
    <CE:Gallery
        id="gallery1"
        runat="server"
        Height="500" 
        Width="600"
        Column = "8"
        MaxImageWidth="1024"
        BackColor="#ffffff"
        CellPadding="5"  
        AutoResizeUploadedImages = "true"  
        CellSpacing="5"
        ForeColor="#000000"
        BorderColor="#cc0000"
        BorderStyle="solid"
        BorderWidth="0"
        CssClass="container"
        ShowThumbNailName="true" 
        ShowThumbNailSize="false" 
        ShowThumbNailDate="false" 
        ShowThumbNailDescription="true" 
        HomeURL="album.htm"
        >
    </CE:Gallery>

    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

  •  04-26-2005, 7:59 AM 6133 in reply to 6130

    Re: three questions involving the various page levels

    Tom,

     tommyclifton wrote:


    2.  Is there a way to suppress the title display on page B?  Can I put it beside the buttons, instead of over them?

     
    You can put the title beside the table which contains the gallery, but you can't put the title right beside the buttons.

    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

  •  04-26-2005, 8:05 AM 6134 in reply to 6130

    Re: three questions involving the various page levels

     tommyclifton wrote:
    Hi,


    4.  What exactly does RestrictUploadedImageDimension do?  Ideally I would like to force uploads to be 640x480, or 480x640, and I'd be happy to enforce a "both dimentions must be 640 or less" policy.  Is this what it does?

     
    Yes.
     
    Gallery.RestrictUploadedImageDimension Property -- Indicates whether or not to Upload Images With Dimension Restrictions. 
     
    Gallery.MaxImageWidth Property - The maximum width of the images. Default is 500.

    Gallery.MaxImageHeight Property - The maximum height of the images. Default is 500.

    In your case, your gallry configuration should as followings:

    <CE:Gallery ..... RestrictUploadedImageDimension="true" MaxImageWidth="640" MaxImageHeight="640".... ></CE:Gallery>





    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

View as RSS news feed in XML