AEM工具:使用珊瑚的标签选择器 [英] AEM Tools: Tag Picker using Coral
本文介绍了AEM工具:使用珊瑚的标签选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经阅读了以下内容:页面上的AEM标签选择器小部件一个> 但是没有得到满意的答复.
I have gone through this: AEM Tag picker widget on a page But did not get any satisfactory answer.
我有一个在apps/projectname/components/tools/toolname/content.jsp
我知道这需要在珊瑚UI中进行. 无论如何,我需要一种方法,通过该方法可以在以JSP编写的此页面中实现AEM标记选择器(或标记字段).
I understand that this needs to be made in coral UI. Anyway, I need a method by which I can implement an AEM Tag Picker (or a Tag Field) in this page which is written in JSP.
推荐答案
我覆盖了
cq/gui/components/common/tagspicker
在apps文件夹中,然后编辑 render.jsp 中的代码段以从所需路径中选择标签.
in the apps folder, and then edited the piece of code in the render.jsp to pick the tags from the desired path.
AttrBuilder attrs = htmlTag.getAttrs();
.
.
.
.
.
attrs.add("data-basepath", cfg.get("tagsPath", tagSpace));
tagSpace指的是/etc/tags
这篇关于AEM工具:使用珊瑚的标签选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文