資產選擇器 asset-selector

NOTE
資產選擇器在舊版Experience Manager中稱為資產選擇器

資產選擇器可讓您在Adobe Experience Manager Assets中瀏覽、搜尋及篩選資產。 您也可以擷取使用資產選擇器所選取資產的中繼資料。 若要自訂資產選擇器介面,您可以使用支援的請求引數來啟動它。 這些引數會為特定案例設定資產選擇器的內容。

目前,您可以傳遞要求引數assettype影像/視訊/文字)和選取範圍mode單一/多個)作為資產選擇器的內容相關資訊,其內容在整個選取範圍中保持不變。

資產選擇器使用HTML5 Window.postMessage ​訊息將所選資產的資料傳送給收件者。

資產選擇器是根據Granite的基礎選擇器辭彙。 依預設,資產選擇器會以瀏覽模式運作。 不過,您可以使用Omnisearch體驗套用篩選器,以縮小特定資產的搜尋。

您可以將任何網頁(無論其是否為CQ容器的一部分)與資產選擇器(https://[AEM_server]:[port]/aem/assetpicker.html)整合。

內容引數 contextual-parameters

您可以在URL中傳遞下列請求引數,以啟動特定內容中的資產選擇器:

名稱
範例
用途
資源尾碼(B)
資料夾路徑作為URL中的資源尾碼: http://localhost:4502/aem/
assetpicker.html/<folder_path>
若要在選取特定資料夾的情況下啟動資產選擇器(例如,在選取資料夾/content/dam/we-retail/en/activities的情況下),URL的格式應為: http://localhost:4502/aem/assetpicker.html
/content/dam/we-retail/en/activities?assettype=images
如果您在啟動資產選擇器時要求選擇特定資料夾,請將其作為資源尾碼傳遞。
模式
單一,多個
http://localhost:4502/aem/assetpicker.html
?mode=multiple
http://localhost:4502/aem/assetpicker.html
?mode=single
在多重模式中,您可以使用資產選擇器同時選取數個資產。
對話方塊
true, false
http://localhost:4502/aem/assetpicker.html
?dialog=true
使用這些引數以Granite對話方塊開啟資產選擇器。 此選項僅適用於透過Granite路徑欄位啟動資產選擇器,並將其設定為pickerSrc URL時。
<folder_path>
http://localhost:4502/aem/
assetpicker.html?assettype=images
&root=/content/dam/we-retail/en/activities
使用此選項可指定資產選擇器的根資料夾。 在此情況下,資產選擇器可讓您僅選取根資料夾下的子資產(直接/間接)。
檢視模式
搜尋
若要在搜尋模式中啟動資產選擇器,請使用assettype和mimetype引數。
assettype (S)
影像、檔案、多媒體、封存
  • http://localhost:4502/aem/assetpicker.html?viewmode=search&assettype=images
  • http://localhost:4502/aem/assetpicker.html?viewmode=search&assettype=documents
  • http://localhost:4502/aem/assetpicker.html?viewmode=search&assettype=multimedia
  • http://localhost:4502/aem/assetpicker.html?viewmode=search&assettype=archives
使用此選項可依據傳遞的值來篩選資產型別。
mimetype
資產的mimetype (/jcr:content/metadata/dc:format) (也支援萬用字元)
  • http://localhost:4502/aem/assetpicker.html?viewmode=search&mimetype=image/png
  • http://localhost:4502/aem/assetpicker.html?viewmode=search&?mimetype=*png
  • http://localhost:4502/aem/assetpicker.html?viewmode=search&mimetype=*presentation
  • http://localhost:4502/aem/assetpicker?viewmode=search&mimetype=*presentation&mimetype=*png
用它根據MIME型別篩選資產

使用資產選擇器 using-the-asset-selector

  1. 若要存取資產選擇器介面,請移至https://[AEM_server]:[port]/aem/assetpicker

  2. 導覽至所需的資料夾,然後選取一或多個資產。

    chlimage_1-441

    或者,您可以從OmniSearch方塊搜尋所需的資產,然後選取它。

    chlimage_1-442

    如果您使用OmniSearch方塊搜尋資產,您可以從​ 篩選器 ​窗格中選取各種篩選器來縮小搜尋範圍。

    chlimage_1-443

  3. 按一下工具列中的​ 選取

recommendation-more-help
19ffd973-7af2-44d0-84b5-d547b0dffee2