Closed juani0824 closed 1 year ago
I see HTML in your screenshot, not CSS. You can use the usual helper provided also in our documentation
Hello @juani0824 does my response solve your problem? If so, please close this issue.
No, no he podido resolver el problema todavía, es código html pero la foto quiero recuperarla desde background-image y no sé cómo hacerlo .
Try this (assuming that foo
variable contains a reference to your entity)
<div class="img prix" style="background-image: url({{ vich_uploader_asset(foo) }})"></div>
thanks for your answer, but I still have an error.
I guess that "image" is not the name of your mapped field
Closing for missing feedback
I would like to know how I can retrieve an image from the css, I would like to add the image using the background-image. I don't know if this is possible. I appreciate your help.
Thanks.
This is my code : Entity Category
VichUploader
Services
Thanks you