[BUG]: Default backend list view prevents showing html images instead of raw image url #1317

Open
opened 2026-08-03 10:46:43 +00:00 by SimonvanDoorne · 1 comment
Member

What Happened?

When creating a 'Media' field and setting it to be shown in the backend, the raw media url is shown. The default admin list view uses the 'escape' function to render the field content
afbeelding.png
This function limits the value to 50 characters, and media fields are saved with lots of extra parameters, for example
afbeelding.png
Full url: images/Logos_Images/site_logo.png#joomlaImage://local-images/Logos_Images/site_logo.png?width=488&height=132.
If i wanted to show the image in an tag instead of the raw url, this would be shortend to 50 chars since the escape function has that as default.
afbeelding.png
This results in an empty string

Steps to reproduce the Bug

  1. Create Media field
  2. Add it to admin view and set to show in list view
  3. Add custom code in 'getItems after all'
  4. Logo is no longer shown

Which Joomla version are you compiling in?

5.4.3

Which PHP version are you compiling in?

8.1

Which Joomla versions are you targeting?

6.1.2

Which PHP version are you targeting?

8.1

Which Web server is JCB running on?

Ubuntu

Which Relational Database is JCB running on?

MariaDB

Which OS is JCB running on?

Ubuntu

Which JCB version are you using?

5.1.6 stable

Where in JCB did this issue occur?

Compilation of a component

On which browsers did you encounter the issue?

Firefox

Additional Comments

No response

### What Happened? When creating a 'Media' field and setting it to be shown in the backend, the raw media url is shown. The default admin list view uses the 'escape' function to render the field content ![afbeelding.png](/attachments/292854d8-9fef-423e-9aa8-1a34e8eeb711) This function limits the value to 50 characters, and media fields are saved with lots of extra parameters, for example ![afbeelding.png](/attachments/ec0b0a59-607a-4ae5-8bdc-c68332d0bbba) Full url: images/Logos_Images/site_logo.png#joomlaImage://local-images/Logos_Images/site_logo.png?width=488&height=132. If i wanted to show the image in an <img> tag instead of the raw url, this would be shortend to 50 chars since the escape function has that as default. ![afbeelding.png](/attachments/9d1d0d2c-355a-4a7f-b7ae-d79fd0091e50) This results in an empty string ### Steps to reproduce the Bug 1) Create Media field 2) Add it to admin view and set to show in list view 3) Add custom code in 'getItems after all' 4) Logo is no longer shown ### Which Joomla version are you compiling in? 5.4.3 ### Which PHP version are you compiling in? 8.1 ### Which Joomla versions are you targeting? 6.1.2 ### Which PHP version are you targeting? 8.1 ### Which Web server is JCB running on? Ubuntu ### Which Relational Database is JCB running on? MariaDB ### Which OS is JCB running on? Ubuntu ### Which JCB version are you using? 5.1.6 stable ### Where in JCB did this issue occur? Compilation of a component ### On which browsers did you encounter the issue? Firefox ### Additional Comments _No response_
SimonvanDoorne added the Bug label 2026-08-03 10:46:44 +00:00
Owner

image.png

There is an option in the field settings that, when enabled, prevents the field’s value from being escaped where it is used. Enabling this option may resolve the issue. It is not ideal, but it is the current workaround.

![image.png](https://git.vdm.dev/attachments/c063200e-1a7d-40b8-9f61-72cdb501c358) There is an option in the field settings that, when enabled, prevents the field’s value from being escaped where it is used. Enabling this option may resolve the issue. It is not ideal, but it is the current workaround.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1317