Re: Change categories order

  •  05-25-2011, 2:49 PM

    Re: Change categories order

    Dear eschrein,
     
    How to change the categories order? 
    Please open "CuteSoft_Client\Gallery\Layout\Explorer\Code.js",  go to line 118, you can find the following code: 
      for(var i=0;i<this._categories.length;i++)
      {
       var c=this._categories[i];
       var div=this.CreateItemDiv(c,null,(c.Title||GalleryLocalize.DEFAULTCATEGORYNAME)+" ("+c.Photos.length+")",folderthumb,128,128);
       this.AttachItemEvent(container.appendChild(div));
      } 
    This controls the category display, you can change the order by updating this code. 
    How to change the category title in admin panel?
    Please open file "CuteSoft_Client\Gallery\Editor\Explorer\Code.js"
    Go to line 329,
    div.appendChild(document.createTextNode(category.Title||GalleryLocalize.DEFAULTCATEGORYNAME));
    You can change the category title by updating this line, for example,
    change "category test test test test  test test test  test test test  test test test "
    to
    "category test ... "
     
    How to change the display width for categories in admin panel?
    Please open file:
    Change the following css setting:
     
    .GalleryEditorLeftFrame {
        border-bottom1px groove gray;
        border-right1px groove gray;
        floatleft;
        height340px;
        overflowauto;
        width: 135px;
    }
     Thanks for asking
     
     
     
View Complete Thread