自定义模块中的响应式映像如何重新浮雕到Drupal 9

发布于 2025-02-13 16:08:57 字数 404 浏览 0 评论 0原文

我将drupal7升级为drupal9 我如何在自定义模块中制作响应式图像 $ banner_img ['groun_image'] = $ base_url。'/'。$ module_path。 '/images/flower-02.jpg'; $ banner_img ['mid_desktop_image'] = $ base_url。'/'。$ module_path。 '/images/flower-02.jpg'; $ banner_img ['ipad_image'] = $ base_url。'/'。$ module_path。 '/images/flower-02730.jpg'; $ banner_img ['mobile_image'] = $ base_url。'/'。$ module_path。 '/images/flower-02560.jpg'; 请帮忙

I upgrade the drupal7 to drupal9
how i can make the responsive image in custom module
$banner_img['large_image'] = $base_url.'/'.$module_path . '/images/flower-02.jpg';
$banner_img['mid_desktop_image'] = $base_url.'/'.$module_path . '/images/flower-02.jpg';
$banner_img['ipad_image'] = $base_url.'/'.$module_path . '/images/flower-02730.jpg';
$banner_img['mobile_image'] = $base_url.'/'.$module_path . '/images/flower-02560.jpg';
please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

双马尾 2025-02-20 16:08:57

在Drupal 9中,响应式图像的处理方式不同。
您需要响应式图像和断点模块。

请将其视为指南: https:https:// wwwwww .prometsource.com/blog/how-set-responsive-images-drupal-9-0

In drupal 9, responsive images are handled differently.
You need both responsive images and breakpoint modules.

Please see this as a guide: https://www.prometsource.com/blog/how-set-responsive-images-drupal-9-0

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文