Change categories order

Last post 06-01-2011, 12:35 PM by Eric. 3 replies.
Sort Posts: Previous Next
  •  05-25-2011, 6:50 AM 67678

    Change categories order

    Hello,
    I’ve found instruction to change the order of the images here:
    http://cutesoft.net/forums/thread/62999.aspx
    Is it possible to do the same for the categories? I’m using the “explorer” layout and would like to display the most recent categories first (order by date descending).
     
    Do you plan to add the “change order” functionality (for images and categories) in the admin tools in the future?

    In the administration panel, if the name of a category is long it gets mixed with the following category (displayed below), on display. Is there a way to correct this or, maybe, to change the width of the administration panel?
     
    Thank you,
  •  05-25-2011, 2:49 PM 67687 in reply to 67678

    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
     
     
     
  •  06-01-2011, 4:09 AM 67758 in reply to 67687

    Re: Change categories order

    Perfect. Thank you, Eric.
  •  06-01-2011, 12:35 PM 67766 in reply to 67758

    Re: Change categories order

    You're welcome.
View as RSS news feed in XML