資產選擇器 asset-selector
資產選擇器可讓您在 Adobe Experience Manager 資產。 您也可以使用資產選擇器擷取所選資產的中繼資料。 若要自訂資產選擇器介面,您可以使用支援的請求參數啟動它。 這些參數會設定特定案例的資產選取器內容。
目前,您可以傳遞要求參數 assettype
(影像/影片/文字)和選取 mode
(單一/多個)作為資產選取器的內容資訊,在整個選取項目中都保持不變。
資產選擇器使用HTML5 Window.postMessage 訊息,將所選資產的資料傳送給收件者。
資產選擇器以Granite的基礎選擇器辭匯為基礎。 依預設,資產選擇器會在瀏覽模式中運作。 不過,您可以使用Omnisearch體驗套用篩選器,以調整您對特定資產的搜尋。
您可以將任何網頁(無論其是否屬於CQ容器)與資產選擇器(https://[AEM_server]:[port]/aem/assetpicker.html
)。
內容參數 contextual-parameters
您可以在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
http://localhost:4502/aem/assetpicker.html
?dialog=true
<folder_path>
http://localhost:4502/aem/
assetpicker.html?assettype=images
&root=/content/dam/we-retail/en/activities
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
/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
使用資產選擇器 using-the-asset-selector
-
若要存取資產選擇器介面,請前往
https://[AEM_server]:[port]/aem/assetpicker
. -
導覽至所需的資料夾,然後選取一或多個資產。
或者,您也可以從OmniSearch方塊搜尋所需資產,然後選取它。
如果您使用OmniSearch方塊搜尋資產,則可從 篩選器 窗格來定義搜索。
-
點選/按一下 選擇 的上界。