How do I create an Infolist Link?
I want to add a "download" link to an
ImageEntry
but ->downloadable()
is only available for the FileUpload
form component. For example, the following creates a link, but it's not styled nicely (even though I have some basic classes) and seems a little clunky. It also doesn't appear nicely directly below the ImageEntry
I have used above.
Solution:Jump to solution
```php
ImageEntry::make('src')
->extraImgAttributes([
'class' => 'w-full h-auto', // @todo make the image full-width of the section.
])...
6 Replies
isn't there
url()
method?there is
and it should works fine
Perfect.
->url()
will work. It works with ImageEntry
.Solution