Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on January 21, 2015, 13:07:52

Title: mod_slidorion
Post by: seadhna on January 21, 2015, 13:07:52
Hi there,
with this module - if I update the images, the old images still appear on the live site unless I force-refresh. Is there any way to force the new images to appear without having to force-refresh? Otherwise users see the wrong image for each slide after update.
Title: Re: mod_slidorion
Post by: Ivan Trebješanin on January 21, 2015, 14:22:58
Are you using cache feature?
Title: Re: mod_slidorion
Post by: seadhna on January 21, 2015, 14:45:17
No, cache is turned off. I'm also wondering if there is any way to re-order the slides? e.g. when I add a new slide, I need to cut and paste the others in order for the new one to appear first. Thanks! (Regarding the first issue: the module renames the images that are uploaded: image1.jpg, image2.jpg etc. so the browser is still displaying the original 'image1.jpg' even when the actual image has changed.)
Title: Re: mod_slidorion
Post by: seadhna on January 21, 2015, 14:48:30
modules/mod_slidorion/images
Title: Re: mod_slidorion
Post by: Ivan Trebješanin on January 21, 2015, 19:59:39
... browser is still displaying the original 'image1.jpg' even when the actual image has changed.)

This is due to using cached image (either browser or Elxis).
Title: Re: mod_slidorion
Post by: seadhna on January 21, 2015, 20:02:53
yes, hence my question:  Is there any way to force the new images to appear without having to force-refresh? Otherwise users see the wrong image for each slide after update.
Title: Re: mod_slidorion
Post by: Ivan Trebješanin on January 21, 2015, 20:05:09
If user's browser is using cached image, there's not much you can do about it.
Title: Re: mod_slidorion
Post by: seadhna on January 27, 2015, 15:13:55
But if the image names weren't changed to image1.jpg, image2.jpg, then it wouldn't be an issue. The browser would be looking for new image names. So can I suggest that the module either renames the images sequentially, never using the same name twice, or simply does not rename the images at all. Does this make sense?
Title: Re: mod_slidorion
Post by: webgift on January 28, 2015, 20:56:22
Hello @seadhna! I could update the module to use some sort options. Can you please mention me some sort options that you are interested in?
Title: Re: mod_slidorion
Post by: seadhna on February 03, 2015, 17:01:54
that would be great! Yes, so we are using it as a large slideshow on a homepage to display selected latest news articles. Therefore it is great that it is manual, but when we want to add a new item, we have to copy and paste each item down one spot in order to make room for the new item at the top. Also, when we save the module, the wrong images are displayed for each story on the frontend until we 'force-refresh'. But obviously general public will not know to refresh so they will see the wrong images for each item. This is because the image names are changed by the module.
Title: Re: mod_slidorion
Post by: webgift on February 08, 2015, 17:18:06
Module rename the images by the time we apply or save the changes as we want to avoid duplicates. I added this request to the TODO list and hopefully when time allow me a new version of this extension will be released. By writing 'force-refresh' i assume you click ctrl+F5, browser refresh the HTML document by cleaning the cache and fetch all the data once again.
Title: Re: mod_slidorion
Post by: seadhna on February 13, 2015, 10:44:10
image rename could work, if it must be in place, by perhaps naming sequentially? i.e. not continuously creating 'image1' but instead 'image5' image105 image106 etc?
Title: Re: mod_slidorion
Post by: seadhna on February 13, 2015, 10:45:16
yes, force refresh is CTRL plus refresh on IE or SHIFT plus refresh on FF/Chrome. Without doing this, all users that have previously visited the page see the wrong images because of this image renaming.
Title: [ver1.1]: Slidorion module updated!
Post by: webgift on February 16, 2015, 11:40:45
Slidorion module updated to version 1.1. A new sort by option is launched today when the source has been set to 'User Images'. Tip: Upload image and apply the parameters one by one from back-end. Choose the sort by option f.e: Latest images first in order to avoid changing the order for each image manually. Default option will use the absolute row as submitted on module's parameters.
Download: E.D.C Link (https://www.elxis.net/edc/multimedia/20.html)

@seadhna:
We can neither enforce visitor's browser clear its cached content nor change the file name for each image due to Elxis philosophy (upload images from parameters) so we had to find out alternative solutions to this issue. Hope this update will help you!
Title: Re: mod_slidorion
Post by: seadhna on February 17, 2015, 17:37:54
Hi webgift,
I've just installed the new version! But what is the solution for image names? They are still being renamed 'image1.jpg' 'image2.jpg' etc. This means that browsers do not know the images have been replaced.
Title: Re: mod_slidorion
Post by: webgift on February 19, 2015, 12:08:26
Unfortunately @seadhna as i have already written to you we can not bypass the Elxis guidelines. Each extension of Elxis can not bypass this feature. Have you followed the tip? Upload an image once a time and apply the parameters. F.E: Upload the 1st image and click to apply button, upload the 2nd image and click apply etc. When you finish with this process set the order by option to the preferred one.

Do the browsers know the images that have been replaced now?