Welcome, Guest
Username Password: Remember me
Discussion about HOT Joomla Carousel free Joomla module.
  • Page:
  • 1

TOPIC: Ordering images

Ordering images 1 year, 8 months ago #1406

  • stanman1
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
My site URL is as follows:
sandbox.theweboasis.com/miniplaymakeup/

I want the images to appear in a specific order. I saw another post on this same issue and support said that the images are ordered based on the last modified date of the files. My client's web site has 37 images in the carousel. Do I have to modify one file a day for 37 days to get the images to appear the desired order, or is there another way to accomplish my desired effect?

Re: Ordering images 1 year, 8 months ago #1414

  • milos
  • NOW ONLINE
  • Support Staff
  • Posts: 2823
We didn't implement any code into the module that controls ordering. Therefore, images are ordered depending of your server settings. It's usually per name (A to Z) or per modify date (the newest or the oldest first). Please try both variants.

We are planning to implement image ordering code in the next PRO version of this module.

Re: Ordering images 1 year, 6 months ago #1787

  • fmoulton
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
if you are having issues with ordering and your server. You can add this simple piece of code to make it sort alphabetically or numerically.

Go to modules/mod_hot_joomla/carousel/tmpl and open the file default.php

Around Line 159 you will see the beginning of the for loop
for ($loop = 0; $loop <= $infinite_pics_number; $loop += 1) {

add this line after it

//sort images
sort($infinite_pic);
//end sort

save the file and re-upload it to the server.

Now your images will sort like this:

a-image
b-image

or

1-image
2-image

Happy Coding!!!
  • Page:
  • 1
Time to create page: 0.07 seconds