Question on default album

Last post 10-20-2010, 9:28 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-20-2010, 2:56 PM 64539

    Question on default album

    Hey guys
     
    So,
     
    I've created a default album and added three categories to it.  Everything works fine.
     
    Using the explorer layout, the default album contians no images at all, but is still visible next to the three categories which contain all the images. 
     
    The question is, can I hide that default gallery folder with no images in it?
     
    I've created three separate pages with gallerybrowsers whose GalleryFolder property links directly to my three category directories (using the classic layout), which also works fine but disallows me from using the default gallery as one of my category galleries (because classic layout  shows all images in all subfolders).
     
    On a separate note:
     
    Say a user was to accidently delete a gallery,  instead of deleting the images,  I'd like to move them to a temp folder.  Is the deletion code available in one of the provided files?
     
     
    Thanks,
     
    Greg
     
    Filed under:
  •  10-20-2010, 9:28 PM 64542 in reply to 64539

    Re: Question on default album

    Hi Gregger,
     
    How to hide the default category folder in Explorer layout.
     
     1. Open file "CuteSoft_Client\Gallery\Layout\Explorer\Code.js"
     
    2.  Find section below
     
     this.AttachItemEvent(container.appendChild(div)); 
     
    3.  Change it to
     
       if(c.Title!=null)
       {
           this.AttachItemEvent(container.appendChild(div));
       } 
     
     
    How to hide the delete category menu
     
    1. Open file "y\CuteSoft_Client\Gallery\Popup\Default\Code.js" 
     
    2. Find section below and delete/comment it
     
    menu.Add(1,GalleryLocalize.CLICK_DELETE,null,ToDelegate(this,function Delete(){
    this.Confirm(FormatText(GalleryLocalize.CONFIRM_CLICK_DELETECATEGORY,category.Title||GalleryLocalize.DEFAULTCATEGORYNAME),function(res){
    if(!res)return;
    this.Browser.AsyncDeleteCategory({CategoryID:category.CategoryID});
    },this);
    })); 
     
    3. Also, you can handle it by your own logic.
     
    Regards,
     
    ken 
View as RSS news feed in XML