legacy-knowledge-base
公開されました Jul. 2, 2025

アダプティブメディアがコンテンツページに適用されない

written-by

Rita Schaff

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 画像付きのフラグメントでAdaptive Mediaが適用されていないことに気がつきました。
  1. ドキュメントとメディアライブラリに幅600px以上の画像を追加する
  2. コントロールパネル→設定→アダプティブメディアへ
  3. プロパティに width: 600px, height: automatic で新しい解像度を追加します。
  4. 既存の画像に新しい解像度を適応させる
  5. Site→Content & Data→Web Contentに移動し、Basic Web Contentを追加します。
  6. 手順1でアップロードした画像をコンテンツに追加して公開する
  7. ページにWebコンテンツ表示ポートレットを追加し、追加したWebコンテンツを設定します。
  8. ブラウザでデバイスシミュレーションを開き、モバイルデバイスをシミュレートします(私の場合はChromeを使ってiPhone Xをシミュレートしました)。
  9. Webコンテンツ表示ポートレットの画像をブラウザの開発ツール(ネットワークタブに最適)で検査します。

結果。 私の場合は「/o/adaptive-media/...」から画像が提供されています。
/o/adaptive-media/image/49546/preview-600x0/Policy.png?t=1585211947689
→低解像度の画像を使用

  1. コンテンツページを追加し、画像付きのフラグメントを構成する(画像やカードなど
  2. ウェブコンテンツと同じ画像を設定する
  3. コンテンツページを公開する
  4. ブラウザでデバイスシミュレーションを開き、モバイルデバイスをシミュレート(再びChromeでiPhone Xをシミュレート
  5. フラグメント内の画像をブラウザの開発ツール(ネットワークタブに最適)で検査します。

結果:画像は「/ documents /...」から提供されます。私の場合は
/documents/20124/0/Policy.png/8e3dbd7a-feb4-d5cd-e34a -2ee6c6ad124a?version = 1.0& t = 1585211947689& download = true 2>
元の画像が使用されます

環境への配慮

  • DXP7.

決議

  • これは、Liferay DXP 7.2の次期バージョンに含まれる予定の の欠落した機能です。
  • このための機能リクエストが開かれました: LPS-97919
did-this-article-resolve-your-issue

legacy-knowledge-base