Jump to content

Sort images by name in Image Manager


Guest Ruler

Recommended Posts

Guest Ruler

Does anyone know which query I will need to modify in order to make the list of images in the Image Manager section of the administrative panel display in order by name? Thank you.

Link to comment
Share on other sites

  • 4 months later...

Does anyone know which query I will need to modify in order to make the list of images in the Image Manager section of the administrative panel display in order by name? Thank you.

This may be a little late but here is what I did to fix the sorting issue:

Edit the following file: \yourstore\admin\filemanager\index.php

Around line 142, add "sort($dirArray);" after the following code...

$dirArray = walk_dir($GLOBALS['rootDir']."/images/uploads");

so it now looks like this:

$dirArray = walk_dir($GLOBALS['rootDir']."/images/uploads");

sort($dirArray);

Image Manager will now sort the image filenames alphabetically.

Hope this helps.

John

(Using Cubecart v3.0.15)

Link to comment
Share on other sites

Wow... great help to the rest facing the same problem....

Do anyone know how to sort the manage images under Product Inventory?

Had a problem finding the correct image when i got almost a thousand inside!

thanks

Does anyone know which query I will need to modify in order to make the list of images in the Image Manager section of the administrative panel display in order by name? Thank you.

This may be a little late but here is what I did to fix the sorting issue:

Edit the following file: \yourstore\admin\filemanager\index.php

Around line 142, add "sort($dirArray);" after the following code...

$dirArray = walk_dir($GLOBALS['rootDir']."/images/uploads");

so it now looks like this:

$dirArray = walk_dir($GLOBALS['rootDir']."/images/uploads");

sort($dirArray);

Image Manager will now sort the image filenames alphabetically.

Hope this helps.

John

(Using Cubecart v3.0.15)

Link to comment
Share on other sites

  • 2 weeks later...
Guest EcoMaMa

I have thousands of images too. It has become a problem in selecting images when you need to have more than one. You have to wait more than five minutes for the entire list to load.

Link to comment
Share on other sites

Guest EcoMaMa

fyi, I just hit ctrl+f to do a find in the images window and search for the image name I want. A LOT faster :huh:

Thanks Mysty. <_<

(You spell your name the same way my daughter does)

Do you know how to add more than just the two images? I would like to show four or five for some of the products.

Jo

Link to comment
Share on other sites

You can add as many images as you want. Just click "add images" again and keep going. There is no limit that I know of.

Mysty is a nickname I just use for some boards as one of my stores is mysticconvergence.com - the first one I used cubecart for oh like 4+ years ago :huh:

Link to comment
Share on other sites

  • 2 weeks later...
Guest EcoMaMa

You can add as many images as you want. Just click "add images" again and keep going. There is no limit that I know of.

Mysty is a nickname I just use for some boards as one of my stores is mysticconvergence.com - the first one I used cubecart for oh like 4+ years ago :D

Thanks again Mysty!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...