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
09:00 - 17:00 Europe/London (BST)

#112459 How to configure the mediajce field plugin?

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 Ryan on Friday, 02 December 2022 16:35 GMT

AlainR
Hi.
Is it possible e.g. to define a text for the link to click to a PDF? I have defined such text in the Field Parameter Description option (the second last of the General tab) but it is always the file name that appears. I created a substitution and replaced $element = '<a href="https://www.joomlacontenteditor.net/%s"%s>%s</a>'; in line 91 by $element = '<a href="https://www.joomlacontenteditor.net/%s"%s>'. $text. '</a>'; but it doesn’t work and the target doesn’t work anymore.
I had to set the text to line 82 $text = ' and replaced %s with the desired target.

Also, would it be possible to define a path so that the user only has access to a specific subfolder?

Thank you very much in advance for your help.

Ryan
I have defined such text in the Field Parameter Description option (the second last of the General tab) but it is always the file name that appears.


This is intended for a generic description word like "Download". If you leave this value blank, then the filename of the PDF will be used for the link text.

It is not currently possible to change this, but an update in the new year will add a text field for each media field.

Ryan Demmer

Lead Developer / CEO / CTO

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

AlainR
Thank you. It doesn't work as expected : https://dev.artisan-du-web.ch/samare.ch/voyages/toscane at the bottom of the page you can see the filename.
On printscreen, you can see the description parameter.

Attachments

Ryan
Please try JCE Pro 2.9.33 Beta - 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.

AlainR
I confirm it works fine. Thank you very much !

Can I keep the beta version on this website in development, which will be published next week?

Ryan
Can I keep the beta version on this website in development, which will be published next week?


Yes, JCE Pro 2.9.33 will be released in the next 2 weeks.

Ryan Demmer

Lead Developer / CEO / CTO

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