Re: adding content to the popup photogallery

  •  05-31-2012, 11:41 AM

    Re: adding content to the popup photogallery

    Hi afrika,
     
     1. add custom content to the popup photo gallery.
     
    Can you make a screenshot to show where you want to add the content?
     
    2. Add a label from a database or something ?
     
    For the classic layout, the photos add by the code below
     
    Open file "CuteSoft_Client\Gallery\Layout\Classic\Code.js "
     
    Find section below, the red code div is the photo section, you can add anything you need in it.
     
    GalleryLayout.prototype.DrawUI=function _GalleryLayout_DrawUI()
    {
    clearTimeout(this._animationTimerid);
    this.dng_photolist.innerHTML="";
    var photos=[];
    for(var i=0;i<this._categories.length;i++)
    {
    photos=photos.concat(this._categories[i].Photos);
    }
    for(var i=0;i<photos.length;i++)
    {
    var div=this.CreatePhotoDiv(photos[i]);
    this.AttachItemEvent(div);
    this.dng_photolist.appendChild(div);
    }
    }
     
    3. Tag pictures
     
    Can you explain this question in detail?
     
    Regards,
     
    ken 
View Complete Thread