資產選擇器 asset-selector
資產選擇器可讓您在Adobe Experience Manager Assets中瀏覽、搜尋及篩選資產。 您也可以擷取使用資產選擇器所選取資產的中繼資料。 若要自訂資產選擇器介面,您可以使用支援的請求引數來啟動它。 這些引數會為特定案例設定資產選擇器的內容。
目前,您可以傳遞要求引數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方塊搜尋資產,您可以從 篩選器 窗格中選取各種篩選器來縮小搜尋範圍。
-
按一下工具列中的 選取。