AEM Tools:使用 Coral 的标签选择器
AEM Tools: Tag Picker using Coral
我经历过这个:AEM Tag picker widget on a page
却没有得到满意的答复。
我有一个在apps/projectname/components/tools/toolname/content.jsp
下制作的工具
我知道这需要在珊瑚中制作UI。
无论如何,我需要一种方法,通过它我可以在此页面中实现 AEM 标签选择器(或标签字段),该页面以 JSP.
编写
我覆盖了
cq/gui/components/common/tagspicker
在 apps 文件夹中,然后编辑 render.jsp 中的一段代码以从所需路径中选择标签。
AttrBuilder attrs = htmlTag.getAttrs();
.
.
.
.
.
attrs.add("data-basepath", cfg.get("tagsPath", tagSpace));
where tagSpace refers to the custom tag location inside the /etc/tags
我经历过这个:AEM Tag picker widget on a page 却没有得到满意的答复。
我有一个在apps/projectname/components/tools/toolname/content.jsp
我知道这需要在珊瑚中制作UI。 无论如何,我需要一种方法,通过它我可以在此页面中实现 AEM 标签选择器(或标签字段),该页面以 JSP.
编写我覆盖了
cq/gui/components/common/tagspicker
在 apps 文件夹中,然后编辑 render.jsp 中的一段代码以从所需路径中选择标签。
AttrBuilder attrs = htmlTag.getAttrs();
.
.
.
.
.
attrs.add("data-basepath", cfg.get("tagsPath", tagSpace));
where tagSpace refers to the custom tag location inside the /etc/tags