- Issue created by @janc48
- π«π·France ckhalilo
Hi,
Thank you for asking.Hereβs how to configure and use the "Media Default Image" module:
Configuration
To configure the default image, go to the settings page: **`admin/config/media/default-image`**, and upload the image you want to set as the default.
Usage
- To use the default image in your content types, go to the **"Manage Display"** tab (for example: **`admin/structure/types/manage/article/display`**), select the **"Default Image"** format, and define the image style you want to apply.
- The default image can also be used in **Views** by applying the format to the relevant fields.
All right, with that explanation it all makes sense. Unfortunately the default image is still not showing up in the article view. I did just like you said above. :(
- π«π·France ckhalilo
Hi,
What version of drupal are you using?
There are a problem of upload image file that i fixed in Drupal 11, you can use dev until the final version will be accepted by security advisory policy.
https://www.drupal.org/project/media_default_image/releases/1.0.x-dev β .Regards
Khalil Thank you for your reply.
I am using Drupal 10.4.5. The dev Version didn't help, the default image is still not displayed. :(
- π«π·France ckhalilo
Hi,
To assist you further, could you please explain the process that leads to the default image not being displayed?
Additionally, could you provide screenshots or the steps so I can reproduce the same issue?Regards
Khalil Here is what I did:
1. Install the module via composer and activate it.
2. Set the default image in the configuration area
3. Add a new media field to the content type "article".
4. Set the format "Default image" for the display of this field.
5. Leave the article's media field empty:
6. Check if article has the default image displayed:
- π«π·France ckhalilo
Hi,
have you try another image style to see?
Regards
Khalil