-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback url #126
Comments
@martin-ro Hi. Looks like it's a bug. I'll look into it. |
Hi, any idea where the issue might be? I can try to find a solution. |
Is there where the problem might be? nova-medialibrary-field/resources/js/components/Medialibrary/MediaPreview.vue Lines 31 to 37 in afaa894
|
@bilogic I think it's ok. It might be something else. |
I see.. sorry I don't know Vue, can't help much. |
This is method is not even available in my version, for some reason, and downloaded this a few days ago. Is this available only on the dev branch? |
I figured that useFallbackUrl is media-library specific method. So, I can, also, testify that it doesn't use the fallback URL when you delete an image. |
@dmitrybubyakin I couldn't find the code, but could the problem be that getMedia returns an empty collection when there is no media even when using useFallbackUrl. I think that you have to make a call to getFirstMediaUrl($collectionName) to get the fallback url. |
@dmitrybubyakin I also managed to get |
When using a fallack url no image is displayed. For example on a model like so:
The image field is blank. I also wasnt able to get it to work with the
previewUsing
andmediaOnIndex
methods.Any idea what the issue is? Thanks!
The text was updated successfully, but these errors were encountered: