hey there i found out there is a possibility to add a image to a view page

is there someone who got documentation about it or has a function they can show me how it works for you ( i wanna create something simulair to the purple image)
No description
16 Replies
Matthew
Matthew4d ago
Well my guess is you just use an img tag in the View page blade file
<img src="img url" alt="img name" width="500" height="600">
<img src="img url" alt="img name" width="500" height="600">
Florian
FlorianOP4d ago
where would you put that code because you cant put it in the Form right?
Tim van Heugten
Your screenshot seems to show an infolist
Florian
FlorianOP4d ago
okay so a little info i am quite new so is a infolist a diffrent component than a form?
Tim van Heugten
Correct, it's a separate package used to show data from an entry in read only form
Tim van Heugten
But, if you would want to show in image in a form, you could for example use a placeholder with html content, see https://filamentphp.com/docs/3.x/forms/layout/placeholder#rendering-html-inside-the-placeholder
Tim van Heugten
Placeholders are used to show data in a form in a read only form (versus showing it in a disable input, which is quite common)
Florian
FlorianOP4d ago
ahhh i see thank you very much!!
Tim van Heugten
In a form, an image is often combined with a way to upload one. This would be the FileUpload component.
Florian
FlorianOP4d ago
ye i have been fooling around with that for a while 😂
Tim van Heugten
In Filament v4 I think you will be able to mix forms and infolists., but thats still a few months away.
Florian
FlorianOP4d ago
looking forward to it then! btw thank you really appreciate it would you mind me adding you on discord if there any small question like these?
Tim van Heugten
I would always just post them here as I come and go, but feel free to do so!
Florian
FlorianOP4d ago
for sure will do thanks!

Did you find this page helpful?