I am trying to get an image to display on my custom component. I added it to the defaultExt app/src/assets/images/ but it keeps saying it cant be found. am I supposed to many trailing slashes or is there the right way you expect system images to be added?
Never tried by storing in the angular folders. But, you can store it in custom folder and use the URL of the image.
For example,
www.yoursuitecrm.com/legacy/public/custom/images/yourimage.png
but it seems weird that images that are accessed/used in my defaultExt have to be stored outside of the project.
No idea about angular side. Have you cleared symfony cache and check file permissions before angular build command?
I dont think its a performance thing. It could be trying to use a relative path in the project then it gets built into the main application. its weird no one has ever added custom images into the application.
Have you enabled extension in extensions/defaultExt/config/extension.php ?
The check the extension asset path in angular.json
Yes I have and the asset path defined.
"assets": ["extensions/defaultExt/app/src/favicon.ico", "extensions/defaultExt/app/src/assets"],
<img src="../../../../../assets/images/image.svg" alt="image" class="noDataImage" />