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 Online

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
  Wednesday, 11 August 2021
  11 Replies
  1.3K Visits
Hi,
With the "new" override system, JCE is used instead of joomla manager but it's limited at the "image" one we can't select file option when used in a repeat context.
Any idea ?

Thanks
more than a month ago
·
#108491
When using the default Joomla Media Manager for a repeatable field, this too is limited to images only, so pdf files will not be displayed.

The JCE File Browser also defaults to images for media fields, and it is not possible when extending the repeatable field, to specify an option for the field to change this.

The JCE Media Field does have an option to set the display to files or images, but the Joomla repeatable field does not support non-core field types.

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

more than a month ago
·
#108492
Also, it should be noted that the Joomla Media Field, when displaying the media field item in the front-end, only supports images, not pdf or other file types.

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

more than a month ago
·
#108493
I have have try hacking core repeatable.xml (like in old days for adding jce media fields before you add the right way ^^)
But even on adding this code for getting the fiel/image select

<field
name="mediatype"
type="combo"
label="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIATYPE_LABEL"
description="PLG_FIELDS_MEDIAJCE_PARAMS_MEDIATYPE_DESC"
showon="fieldtype:mediajce"
>
<option value="images">images</option>
<option value="files">files</option>
>

it's not enuph because I suppose we can't add a fieldparams like this.

It's very annoying in 2021 we can't still easily create a simple form for adding PDF file + input for displaying a nice name in front with J! but's it's not your fault of course ^^
more than a month ago
·
#108494
We have tested with a quick hack, modifying administrator/components/com_media/models/list.php l.158 and adding pdf . It works for the core media not for JCE replacment.
more than a month ago
·
#108496
I'm going to be doing some tests on this in the next few days, and I think it can be done with a few field layout overrides, and a small change in JCE (which will bein the update tomorrow).

It basically involves changing the "view" value in the url in the media field layout, to view="files" (instead of view="images"), and then a change in the repeatable field front-end layout so that the PDF is rendered as a link.

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

more than a month ago
·
#108498
If you change view=images to view=files the url in a template override for the media field - https://github.com/joomla/joomla-cms/blob/3.10-dev/templates/protostar/html/layouts/joomla/form/field/media.php#L87 - you can get the Joomla Media Manager to list all files.

The JCE Pro 2.9.11 RC 4 - https://www.joomlacontenteditor.net/downloads/editor/pro/development - supports this change to display files in the File Browser, instead of just images.

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

more than a month ago
·
#108499
You need to change this in the admin template too for the back-end media field - https://github.com/joomla/joomla-cms/blob/3.10-dev/administrator/templates/isis/html/layouts/joomla/form/field/media.php#L87

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

more than a month ago
·
#108500
Yep yep yep ! tested and validate ! I make an override of the admin template and install the RC4 : Thanks so much ! When it will ready I will post the solution everywhere I see the issue (JCE media fields is in pro version only ?)
more than a month ago
·
#108744
I think I have play with too much things : now in my repeatable fields I have a media field but it don't all JCE Media manager when I create some content. How i have broke this ? (I have test with another website : media field in repeat call jce mediamanager)
more than a month ago
·
#108767
This is still working in my tests.

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

more than a month ago
·
#108769
My first issue is that JCE is not loading in repeat fields anymore instead of J media.

edit : I have re-upload a whole fresh isis/html folders : it's okay now i have JCE instead of J!media in repetable. I'm waiting for pdf file.
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!