问题标签 [aem-touch-ui]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
474 浏览

aem - AEM pathfield to allow selection of only child pages

I have a requirement where the AEM pathfield component will show only the child(cq:Page ) resources/nodes of the current node(cq:Page) in the options picker. I went through the documentation https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/pathfield/index.html , not sure the filter option can be of use.

#xA;

content.xml

#xA;
0 投票
0 回答
158 浏览

aem - AEM - 仅列出直系子级的谓词

我在带有谓词属性的 cq 对话框中使用 aem-commons 的 contextualPathBrowser(类似于 pathfiled 组件)。java 谓词类将评估节点并仅在路径选择器中返回子页面(cq:Page)供用户选择。谓词类如下:

该代码运行良好,仅列出 jcr:primaryType = cq:Page 的节点。但是,很难仅列出用户当前所在页面的子页面,因为我不确定如何在 Predicate 类中获取当前资源/节点/页面。

0 投票
1 回答
120 浏览

aem - _cq_dialog.xml _cq_dialog/.content.xml 之间有什么区别吗?

在我见过的大多数 AEM 组件中,都有一个文件 _cq_dialog.xml,它定义了一个用于配置组件的 Touch UI 对话框。但是,当我使用 CRX DE 包导出组件时,它包含 _cq_dialog 作为目录,其中包含 .content.xml。

对话框是在 _cq_dialog.xml 还是 _cq_dialog/.content.xml 中定义的,有什么区别吗?