- Posts: 1
- Thank you received: 0
Ordering images
-
stanman1
Inactive member - Topic Author
- New Member
Less
More
14 years 6 months ago #1406
by stanman1
Ordering images was created by stanman1
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?
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?
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6743
- Thank you received: 716
14 years 6 months ago #1414
by milos
Replied by milos on topic Re: Ordering images
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.
We are planning to implement image ordering code in the next PRO version of this module.
Please Log in to join the conversation.
-
fmoulton
Inactive member - New Member
Less
More
- Posts: 2
- Thank you received: 0
14 years 5 months ago #1787
by fmoulton
Replied by fmoulton on topic Re: Ordering images
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!!!
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!!!
Please Log in to join the conversation.
Time to create page: 0.159 seconds