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.

#117286 JCE File Browser (Media)

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 Thursday, 14 August 2025 10:51 BST

elmweb

Hello,

I have a template override to display pdf download button uploaded with custom field JCE File Browser (Media). With 2.9.61 it works without problems but with the new version it show just website url, https://www.eua.eu instead https://www.eua.eu/images/file.pdf

Code used in override is this:

<!-- documents -->
						<?php if (!empty($docs)) { ?>
							<div class="documents">
								<h3>Downloads</h3>
								<div class="row">
									<?php 
										foreach ($docs as $key => $doc) { 
											$filetitle = '';
											if (!empty($doc->field11)) {
												$filetitle = $doc->field11;
											} else {
												$filetitle = basename($doc->field6->media_src);
											}
									?>
									<div class="col-12">
							 			<a href="https://www.joomlacontenteditor.net/<?php echo JURI::root().$doc->field6->media_src; ?>" class="btn btn-sm btn-download" target="_blank">
								 			<?php echo $filetitle; ?>      <i class="fa-solid fa-download"></i>
							 			</a>
								 	</div>
								 <?php } ?>
								</div>
							</div>
						<?php } ?>

Attachments

elmweb

Sorry, this is correct attachment

Attachments

Ryan

Have you enabled the Legacy Media Support option in the Fields - Media JCE plugin options? If you have, then this would set the value as a string, and not as an object with a "media_src" key.

Ryan Demmer

Lead Developer / CEO / CTO

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