cq:include中包含的组件不可编辑

时间:2018-08-15 09:37:42

标签: jsp aem aem-6

我目前正在将CQ5网站迁移到AEM 6.3,并且遇到通过<cq:include>包含的组件的问题。它不会显示任何编辑栏-在Touch UI和Classic UI中均不会。

我将组件包含在我的JSP页面模板中,如下所示:

<cq:include path="stageteaser" resourceType="my-project/components/stageteaser"/>

该组件具有一个cq:htmlTag

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    cq:tagName="div"
    jcr:primaryType="nt:unstructured"
    class="cq-stageteaser"
    id="cq-stageteaser"/>

/apps/my-project/components/stageteaser/dialog.xml/apps/my-project/components/stageteaser/_cq_dialog/.content.xml下,我还使用两种对话框配置-一种用于经典UI,一种用于Touch UI。

组件已正确呈现(因为已经存在内容),但是两个UI中都没有编辑栏。

我尝试过:

  • 删除cq:htmlTag
  • 将对话框缩小到一个文本字段
  • 删除组件的内容
  • 将组件放入parsys

但到目前为止还没有运气。

更新:

我设法通过包括parsys而不是组件并将组件放在其中而使其现在开始工作。但这需要手动(或以某种方式自动)迁移内容,但这似乎是一个难看的解决方法。

0 个答案:

没有答案
相关问题