_cq_dialog.xml _cq_dialog/.content.xml有区别吗?

Is there any difference between _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中定义对话框有什么区别吗?

不,两者没有区别。两者都是 cq:dialog 节点的有效序列化。 但是,带有文件夹的版本有一个额外的好处,即允许您将 cq:dialog 的后代节点放入单独的文件中。