[BUG]: Admin View Images Not Compiling #1198

Open
opened 2024-12-21 19:10:35 +00:00 by mwweb · 1 comment

What Happened?

Created admin view, added images to view, compiled. There were no images in the compiled component.

Steps to reproduce the Bug

Add images to admin view, then compile.

Which Joomla version are you compiling in?

5.2.2

Which PHP version are you compiling in?

8.2.21

Which Joomla versions are you targeting?

5.x

Which PHP version are you targeting?

8.2+

Which Web server is JCB running on?

Apache/2.4.59 (Debian)

Which Relational Database is JCB running on?

11.4.2-MariaDB-ubu2404

Which OS is JCB running on?

Ubuntu 22.04.4 LTS

Which JCB version are you using?

v5.0.3

Where in JCB did this issue occur?

Compilation of a component

On which browsers did you encounter the issue?

Firefox

Additional Comments

In doing some testing, it would appear the the compiler doesn't like folders that have spaces, or underscore. Single word folder names, or folder names with a dash are accepted.

In doing some testing, the older JCB for 3.x handled this fine. I'm unsure if this is by design, or is a bug, but wanted to report it.

As an example, place the images for the Demo component in images/vdm_demo. The images will not compile, but with images/vdm, or images/vdm-demo they will compile.

### What Happened? Created admin view, added images to view, compiled. There were no images in the compiled component. ### Steps to reproduce the Bug Add images to admin view, then compile. ### Which Joomla version are you compiling in? 5.2.2 ### Which PHP version are you compiling in? 8.2.21 ### Which Joomla versions are you targeting? 5.x ### Which PHP version are you targeting? 8.2+ ### Which Web server is JCB running on? Apache/2.4.59 (Debian) ### Which Relational Database is JCB running on? 11.4.2-MariaDB-ubu2404 ### Which OS is JCB running on? Ubuntu 22.04.4 LTS ### Which JCB version are you using? v5.0.3 ### Where in JCB did this issue occur? Compilation of a component ### On which browsers did you encounter the issue? Firefox ### Additional Comments In doing some testing, it would appear the the compiler doesn't like folders that have spaces, or underscore. Single word folder names, or folder names with a dash are accepted. In doing some testing, the older JCB for 3.x handled this fine. I'm unsure if this is by design, or is a bug, but wanted to report it. As an example, place the images for the Demo component in images/vdm_demo. The images will not compile, but with images/vdm, or images/vdm-demo they will compile.
mwweb added the
Bug
label 2024-12-21 19:10:35 +00:00
Author

Perhaps one additional suggestion...it looks like icons for admin views are 128x128. Anything larger and the image flows outside the "button" on the dashboard. Perhaps place a comment on the admin view page, above the icon media fields, specifying the maximum size of images. A better option, but it would require more programming, would to dynamically resize the images. That could even be done in the dashboard with a small addition to code:

<img alt="look&nbsp;add" src="components/com_demo/assets/images/icons/look_add.png" width="128">

Perhaps one additional suggestion...it looks like icons for admin views are 128x128. Anything larger and the image flows outside the "button" on the dashboard. Perhaps place a comment on the admin view page, above the icon media fields, specifying the maximum size of images. A better option, but it would require more programming, would to dynamically resize the images. That could even be done in the dashboard with a small addition to code: `<img alt="look&nbsp;add" src="components/com_demo/assets/images/icons/look_add.png" width="128">`
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1198
No description provided.