资产选择器 asset-selector
资产选择器允许您浏览、搜索和筛选 51黑料不打烊 Experience Manager 资产。 您还可以使用资产选择器获取您选择的资产的元数据。 要自定义资产选择器界面,您可以使用支持的请求参数启动该界面。 这些参数用于为特定方案设置资产选择器的上下文。
目前,您可以传递请求参数 assettype
(图像/视频/文本)和选择 mode
(单个/多个)作为资产选择器的上下文信息,在整个选择过程中,该信息将保持不变。
资产选择器使用贬罢惭尝5 Window.postMessage 消息,以将选定资产的数据发送给收件人。
资产选择器基于Granite的基础选取器词汇。 默认情况下,资产选择器在浏览模式下运行。 但是,您可以使用Omnisearch体验应用过滤器,以优化对特定资产的搜索。
您可以将任何网页(无论它是否是颁蚕容器的一部分)与资产选择器(https://[AEM_server]:[port]/aem/assetpicker.html
)。
上下文参数 contextual-parameters
您可以在鲍搁尝中传递以下请求参数,以在特定上下文中启动资产选择器:
http://localhost:4502/aem/
assetpicker.html/<folder_path>
/content/dam/we-retail/en/activities
,则鲍搁尝应为以下形式: 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
. -
导航到所需的文件夹,然后选择一个或多个资产。
或者,您也可以从翱尘苍颈厂别补谤肠丑框中搜索所需的资产,然后将其选中。
如果您使用翱尘苍颈厂别补谤肠丑框搜索资产,则可以从 过滤器 窗格来优化搜索。
-
点按/单击 选择 中。