#1169 – Display Scr Image in Details Modal Backend

Status: Closed - Category: Showtime Image Gallery
Hi Lefteris,

we do not use the main image for the big display in the frontend but the source image. Therefore we have set the main image to 10x10 px with 10 % of quality to not block unnecessary space on our webspace.

But the main image is used in the edit modal where you can set the title, alt and description. I tried to find out where this image is set, but it is no PHP so it has to be a javascript.
Is there a possibility that I can add some script that the edit modal uses the source image?

Kind regards
Tanja Vogt
Webman Webdesign
Hi Tanja,

You need to modify 2 javascript files.

1. administrator/components/com_showtime/js/jquery.showtime.js

- Add the following code in line 133:
el.data('source-image', response.source);


- Add the following code in line 156:
el.data('source-image', item.source);


2. administrator/components/com_showtime/js/showtime.js

- Modify line 85 so it looks like
var image = window.showtimeCurrentFile.data('main-image');


We need to think a better solution for this. Maybe selecting the image sizes that would be available for use in the component options.

Regards

 
Hi Lefteris,

this worked, thank you very much.
But I'm not sure if we talk about the same versions here. The lines where I hat to add the code were different (124 & 148).

I would really appreciate if you could integrate a select in the component options. That would be great, because I wouldn't have to override your files.

Kind regards,
Tanja
Hi Tanja,

Your subscription has expired so its likely that you are using an older version indeed.
We will consider this feature.

Regards
 
Thank you very much.

Our subscription has expired 2 weeks ago. Is there a newer version than 1.5.9?

Kind regards
Tanja
No, the latest version is 1.5.9 at the moment.

We are already working in native Joomla 5 versions for all our extensions. And this is a good time to add new features.
If you have any ideas you want to share please let me know.

Regards
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review