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.
Comments #7 π¬ Media Default Image Active is fixed
The code is ready to review
ckhalilo β created an issue.
MR is now available in 3428204-fix-drupal-11
ckhalilo β changed the visibility of the branch 3428204-automated-drupal-11 to hidden.
ckhalilo β changed the visibility of the branch 3428204-automated-drupal-11 to active.
ckhalilo β changed the visibility of the branch 3428204-automated-drupal-11 to hidden.
Hi,
This patch will fix all for Drupal 11.00.
ckhalilo β created an issue.
Can you please accept this PR to upgrade to D11.
Why this patch is not deployed?
Can you please accept this patch?
here the new patch
May be the first one of referenced entities may be we can add reset to get the first one
$referenced_entities = reset($enclosure->referencedEntities());
$file = $referenced_entities->get('thumbnail')->entity;
Have you try to change Format in your admin/structure/types/manage/article/display?
You should find Default Image in the list.
Hi,
Maybe in two weeks it will be on alpha version.
I have other project to do before this one.
This patch fix both
ckhalilo β created an issue.
I got the same error when i migrate to Drupal 10.3
Here is the patch
ckhalilo β created an issue.
Olivero 10.2.6 (default theme)
ckhalilo β created an issue.
Bug fixed and deployed today
Hi,
I don't think image style medium is always available as style.
Must add string in front of function getDescription()
public function getDescription() :string {
Env
- PHP8.2
- D10.2
This patch is working for me.
Without this patch in my env PHP 8.2, I have 200% CPU and Memory limits is reaching more 190%.
Thank you.
A New patch fix all above
Ad patch 1
New PR, because dosen't work on D10 latest.
I'm interested too, It will not be removed immediately, but surely it will be removed from next versions of Azure Storage.
It's recommended to use Azure Storage REST API.
You have to add AllowedDynamicProperties to final class to skip this error.
I have added this patch