Re: how i get all categories name with folder path

  •  12-17-2010, 11:01 AM

    Re: how i get all categories name with folder path

    Dear raneamey,
     
    Please open "\CuteSoft_Client\Gallery\Popup\Default\Code.js", you can find related code:
    Remove Category:
    this.Confirm(FormatText(GalleryLocalize.CONFIRM_CLICK_DELETECATEGORY,category.Title||GalleryLocalize.DEFAULTCATEGORYNAME),function(res){
        if(!res)return;
        this.Browser.AsyncDeleteCategory({CategoryID:category.CategoryID});
       },this);
    This snippet remove category.
     
    Create Category:
     
    this.Browser.Prompt(GalleryLocalize.PROMPT_TYPECATEGORYNAME,function(newname){
      if(!newname)return;
      this.Browser.AsyncCreateCategory({Title:newname});
     },this);
     
    Update Category:
    this.Prompt(GalleryLocalize.PROMPT_TYPECATEGORYNAME,function(newname){
      if(!newname)return;
      this.Browser.AsyncUpdateCategory({CategoryID:category.CategoryID,Title:newname});
     },this,null,category.Title);
     
    Thank you for asking
View Complete Thread