资源选择器 asset-selector
通过资源选择器,您可以在Adobe Experience Manager Assets中浏览、搜索和筛选资源。 您还可以获取使用资源选择器选择的资源的元数据。 要自定义资产选择器界面,您可以使用支持的请求参数启动该界面。 这些参数为特定方案设置资源选择器的上下文。
目前,您可以将请求参数assettype
(Image/Video/Text)和选择mode
(Single/Multiple)作为资产选择器的上下文信息传递,该上下文信息在整个选择过程中保持不变。
资源选择器使用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框搜索资产,则可以从 筛选器 窗格中选择各种筛选器以优化您的搜索。
-
单击工具栏中的 选择。