Captions with each photo

Last post 03-09-2012, 7:29 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  03-08-2012, 7:38 PM 73386

    Captions with each photo

    I'm very impressed with DotNetGallery.   One of the features mentioned that prompted me to download the trial version was the mention of captions with each photo.    I'm not looking to display viewer comments.   I'd like to use DotNetGallery for display of family photo albums, or progress pictures with my hobbies, and so I had hoped to be able to display a sentence or short paragraph with each photo.  
     
    I have found a comment field in the .config file created for each photo, but otherwise I've not found where to enable the display of a comment.
     
    Thanks,
    Woody
  •  03-09-2012, 7:29 AM 73392 in reply to 73386

    Re: Captions with each photo

    Hi woody6,
     
    The way below shows you how to show the photo comment under the image name in Classic Layout.
     
    1. Open file "\CuteSoft_Client\Gallery\Layout\Classic\Code.js"
     
    2. Find section below
     
    if(cs&&cs.length)
    {
    c2.innerHTML+="<br/><span class='GalleryItemNumComments'>"+cs.length+" "+GalleryLocalize.NUMCOMMENTS+"<span>";z
    }
     
    3. Change it to  
     
    if(cs&&cs.length)
    {
    for(var i=0;i<cs.length;i++)
    {
    c2.innerHTML+=cs[i].Content;
    }
    }
     
     
    It looks like
     
     
     
    Regards,
     
    Ken 
View as RSS news feed in XML