You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#109676 JCE Media Manager not showing on custom repeatable media field in front-end

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Sailfin on Monday, 20 December 2021 21:56 GMT

Sailfin
Hi,

When we want to select an image on custom repeatable media field in front-end the Joomla Media Manager is showing instead of the JCE Media Manager.
When we use the Protostrar template there is no issue at all. See video below.

https://lumiga.nl/1/2021-12-15_16-29-51.mp4

This issue is only related to the repeatable media field.
When we want to select an image for the intro article or full article there is no issue at all as you can see in the video.

Kind regards,
Lumiga

JCE version: 2.9.18
maybe it's also related to this issue: https://www.joomlacontenteditor.net/support/forum/97483

Ryan
Please try JCE Pro 2.9.18 RC - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Sailfin
I'm sorry to say but we still got this issue.
I have delete the cache tried also Firefox and Edge. But stil the same issue.

P.s. I must say that I have seen the media manager 1 time after installed 2.9.18 RC in Edge in a different stylesheet that is more similar to that of Joomla.
But despite clearing cache and history and trying other browsers I have not seen this again.

Ryan
But when we do the same on an other tab (with custom repeatable media field) the iframe is filled with the website instead of the editor.


Does this work as expected in the Joomla Admin?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Sailfin
Yes in the Joomla admin (back-end) everything words fine!

See screenshot

Attachments

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
I suspect this has something to do with a template or layout override for the media or subform field, bit I am unable to check as I cannot access the Joomla admin on your site.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
The media elements in a repeatable field should be wrapped in a
, with a basepath and baseurl attribute, but on your site they are not.

If you disable the JCE File Browser for media fields - https://www.joomlacontenteditor.net/support/faq/editor/revert-to-using-the-joomla-media-manager-in-intro-image-etc-2 - does the repeatable field work?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Sailfin
Hi Rayn, If we disable the JCE File Browser for media fields.
Then we still have te same issue.

Ryan
[quotePost id="109710"]Hi Rayn, If we disable the JCE File Browser for media fields.
Then we still have te same issue.
[/quotePost]

This suggests that the issue is with the template, and the layout overrides it might be using for the media field.

Are you able to test with a different template, or the core "Protostar" template?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Are you using any installed non-core SEF extensions?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Have we discovered a Joomla 3 bug?

I have tested this morning on joomla 4 and there we have no issues on this part.


I'm not seeing any issue with Joomla 3 and protostar, and in a number of other templates, where it doesn't work as expected, it just reverts to the Joomla Media Manager, not a blank window.

I would suggest setting Error Reporting to Maximum in the Joomla Global Configuration, to see if that blank window is a PHP error.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Sailfin
Hi Ryan,

I found out it has something to do with the permissions from the custom fields!

https://lumiga.nl/1/screenshot-156.jpg

So now we are a step closer ;-)

But there is still an issue. But I think you already said that yourself.
With the option enabled for JCE File browser for image fields, we espect that we would see the JCE Media manager.
On the first tab for "Image and Links" it works fine. But when we do the same on the tab with custom repeatable media fields the iframe is filled with Joomla Media manager instead of the JCE Media manager.

Is this something you can improve? Or is this beyond your control?

Kind regards,
Lumiga

Ryan
On the first tab for "Image and Links" it works fine. But when we do the same on the tab with custom repeatable media fields the iframe is filled with Joomla Media manager instead of the JCE Media manager.

Is this something you can improve? Or is this beyond your control?


I can't reproduce this in my local tests. What I said above still applies here I think:

The media elements in a repeatable field should be wrapped in a
, with a basepath and baseurl attribute, but on your site they are not.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Sailfin
Hi Ryan,

You are right with the protostar template we don't have this issue.
So it's indeed a template issue.

I'll contact Yootheme to investigate this issue.

Kind regards,
Lumiga

Sailfin
Hi Ryan,

See answer from Yootheme (template builder) below:

Yootheme issue: https://yootheme.com/support/question/149737#answer-480679

---------------

We looked into this, but it looks like JCE is relying on the media field override in protostar in:
templates/protostar/html/layouts/joomla/form/field/media.php

YOOtheme Pro does not come with any override for the form fields and all the html markup comes from the Joomla components itself.

When disabling this override in protostar for example, the same issue appears there.
So the question is why the JCE media picker relies on the override when used in a repeater?
It should also work without an override needed in the template, i think?

--------------

I hope you can find a solution.

Kind regards,
Lumiga


Ryan
The repeatable media field is not designed to be overridden, it only supports the Joomla Media field, so JCE has to use some javascript to extract data and convert some stuff so the JCE File Browser can be used.

This seems to then require the media field override that Yootheme is referring to. I will investigate, and see if there is another solution.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Sailfin
Thanks, it would be great if you could find something for this.
Then it is a lot easier for customers to understand.
Now they get to see 2 types of Media Managers when they create an article and that is confusing.

Ryan
Please try JCE Pro 2.9.19 Beta 2 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Sailfin
Fantastic, you did it!!!

I'm super happy with it.