AEM Tools: Tag Picker using Coral

流过昼夜 提交于 2020-03-05 03:10:15

问题


I have gone through this: AEM Tag picker widget on a page But did not get any satisfactory answer.

I have a tool made under apps/projectname/components/tools/toolname/content.jsp

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.


回答1:


I had overlaid the

cq/gui/components/common/tagspicker

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));

where tagSpace refers to the custom tag location inside the /etc/tags



来源:https://stackoverflow.com/questions/58638196/aem-tools-tag-picker-using-coral

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!