Supressing specific images

Last post 11-08-2010, 8:58 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  11-08-2010, 7:29 PM 64926

    Supressing specific images

    Is it possible to not show certain images in the gallery either based on exact file name or contents of the XML file? My users will upload say 10 pictures, but only want 6 of them to show, but they dont want the other images removed.
  •  11-08-2010, 8:58 PM 64929 in reply to 64926

    Re: Supressing specific images

    hi regrossman,
     
    Please try this way
     
    For "Classic" layout
     
    1. Open file "\CuteSoft_Client\Gallery\Layout\Classic\Code.js"
     
    2. Find section below
     
        for(var i=0;i<photos.length;i++)
        {
            var div=this.CreatePhotoDiv(photos[i]);
            this.AttachItemEvent(div);
            this.dng_photolist.appendChild(div);
        }
     
    3. Change to (mean that, if photo not name 'j0227635.jpg',show, else hide it)
     
      if(photos[i].Title!="j0227635.jpg")
            {
            var div=this.CreatePhotoDiv(photos[i]);
            this.AttachItemEvent(div);
            this.dng_photolist.appendChild(div);
            }
     
    For "GridShow" layout
     
    1. Ope file "\CuteSoft_Client\Gallery\Layout\GridShow\Code.js"
     
    2. Find section below
     
            var div=this.CreatePhotoDiv(photos[i]);
            this.AttachItemEvent(div);
            this.dng_photolist.appendChild(div);
     
    3. Change to
     
     if(photos[i].Title!="j0227635.jpg")
             {
                 var div=this.CreatePhotoDiv(photos[i]);
                this.AttachItemEvent(div);
                this.dng_photolist.appendChild(div);
             }
     
    Regards,
     
    ken
     
     
View as RSS news feed in XML