资产选择器 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=imageshttp://localhost:4502/aem/assetpicker.html?mode=multiplehttp://localhost:4502/aem/assetpicker.html?mode=singlehttp://localhost:4502/aem/assetpicker.html?dialog=true<folder_path>http://localhost:4502/aem/assetpicker.html?assettype=images&root=/content/dam/we-retail/en/activitieshttp://localhost:4502/aem/assetpicker.html?viewmode=search&assettype=imageshttp://localhost:4502/aem/assetpicker.html?viewmode=search&assettype=documentshttp://localhost:4502/aem/assetpicker.html?viewmode=search&assettype=multimediahttp://localhost:4502/aem/assetpicker.html?viewmode=search&assettype=archives
/jcr:content/metadata/dc:format)(也支持通配符)http://localhost:4502/aem/assetpicker.html?viewmode=search&mimetype=image/pnghttp://localhost:4502/aem/assetpicker.html?viewmode=search&?mimetype=*pnghttp://localhost:4502/aem/assetpicker.html?viewmode=search&mimetype=*presentationhttp://localhost:4502/aem/assetpicker?viewmode=search&mimetype=*presentation&mimetype=*png
使用资产选择器 using-the-asset-selector
-
要访问资产选择器界面,请转到
https://[AEM_server]:[port]/aem/assetpicker. -
导航到所需的文件夹,然后选择一个或多个资产。
或者,您也可以从OmniSearch框中搜索所需的资产,然后将其选中。
如果您使用OmniSearch框搜索资产,则可以从 过滤器 窗格来优化搜索。
-
点按/单击 选择 中。