- π«π·France DrDam
Replace
drupal_get_path
to make it 9.3.x competent βBut it seems there is something "stange",
$block["layout_builder_browser_data"]->image_path
don't take the change...
If you are storing your images inside a module or theme, having to reference the entire image path will cause problems in cases where the path from the root of the site is not fixed. Examples would be:
While technically it is possible to create a different configuration for each environment, for maintainability it would be nice if they could all use the same configuration.
Put an image inside a module/theme in sites/all/modules. Reference the path to that image. Copy the module/theme into sites/sitename/modules and replace the image file with something that looks different but has the same filename. Note that, because you are using an exact path, the browser still shows the version of the image from the original folder.
Add an "image path base" field to the configuration, with "use as shown" as the default (allowing full backwards compatibility), that lets you select a module or a theme to use as the base path for the image URL.
I have a working prototype of this - it will be turned into a patch shortly.
Adds an image path base field, which defaults to "use as shown" for backwards compatibility.
n/a
Adds an image path base field.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Replace drupal_get_path
to make it
9.3.x competent β
But it seems there is something "stange", $block["layout_builder_browser_data"]->image_path
don't take the change...