Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Adobe Experience Manager: ページのサムネイル画像の選択時に検索機能を有効にする方法

Avatar

Employee

Note: This is a Japanese translation of an Adobe Experience League Knowledge Base article. Click this link for the original English version.

 

【目的】
ページのサムネイルを変更する時、「ページプロパティ/サムネイル/画像を選択」のダイアログから画像を指定します。
以前はこのダイアログに検索バーがありましたが、現在の AEM リリースではデフォルトで無効化 [1] されています。
本記事では、検索バーを有効化する方法をご紹介します。

[1] 汎用 Lucene インデックスの削除/パスフィールドピッカー検索
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/removal-...


【環境】
AEM as a Cloud Service


【対応方法】
ダイアログを呼び出すpagethumbnail.jsをオーバーレイし、カスタマイズします。

 

1. pagethumbnail.jsのオーバレイを作成


オーバーレイ元:

/libs/cq/gui/components/common/wcm/clientlibs/wcm/js/pagethumbnail.js

 

オーバーレイ先:

/apps/cq/gui/components/common/wcm/clientlibs/wcm/js/pagethumbnail.js

 

2. ダイアログの呼び出しURLに"&nodeTypes=dam%3AAsset"を追加

 

変更前:

    var src="/mnt/overlay/granite/ui/content/coral/foundation/form/pathfield/picker.html" +
    "?_charset_=utf-8&path=%2fcontent%2fdam&root=%2fcontent%2fdam&filter=hierarchyNotFile&selectionCount=single";

 

変更後:

    var src="/mnt/overlay/granite/ui/content/coral/foundation/form/pathfield/picker.html" +
    "?_charset_=utf-8&path=%2fcontent%2fdam&root=%2fcontent%2fdam&filter=hierarchyNotFile&selectionCount=single&nodeTypes=dam%3AAsset";

 

3. Cloud Manager経由でデプロイし、検索バーが表示されることを確認


<留意事項>
・上記は以下記事の抄訳/翻訳となります。
KB記事タイトル(英語) . Adobe Experience League - Experience League KB Articles. Aug. 22, 2023, https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-22690.html, (参照 2023-08-22).
・本記事にいただいたコメントへの返信はお約束できません。あらかじめご了承ください。

0 Replies