组件已在设计中检查,但未在Sidekick中显示

时间:2014-05-13 03:24:54

标签: cq5

我们正在运行Adobe CQ,版本5.5.0.20120220 Service Pack 2,我的任务是创建一些新模板并限制这些模板可用的组件,而无需在设计模式下手动配置它们。我遵循了Restrict the components in AEM 5.6.1的最高投票答案的建议。我们已经在我们的设计节点下有了这个.content.xml文件,所以我只是从文件中复制了一个现有的部分,该部分工作正常并经过修改以匹配我的新模板。

我遇到的问题是,当我使用新模板创建新页面时,sidekick是空的。我可以在CRXDE中看到我的配置在服务器上是实时的。进入设计模式时,我还可以看到配置的组件已经过检查。但是伙伴仍然是空的。如果我取消选中一个组件并重新检查它,那么东西就会开始出现在伙伴中。我已经完成了这个并通过包管理器导出了设计节点,并且生成的文件与我从源代码控制部署的内容完全匹配(除了空白)。我在这里遗失了一些问题吗?我们以这种方式配置的其他模板在sidekick中显示指定的组件就好了,所以我猜测不同之处在于我的模板或我的模板指定的resourceType,但我似乎无法弄明白。提前谢谢。

编辑 - 从.content.xml添加了代码段。整个文件有点长。如果它有用,我可以链接到完整文件。

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" 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"
    jcr:primaryType="cq:Page">
    <clientlibs/>
    <jcr:content
        cq:doctype="html_5"
        cq:lastModified="{Date}2013-05-08T14:25:15.588-04:00"
        cq:lastModifiedBy="admin"
        jcr:primaryType="nt:unstructured"
        jcr:title="My Site"
        sling:resourceType="wcm/core/components/designer">
        <department-resources-main jcr:primaryType="nt:unstructured">
            <par
                jcr:primaryType="nt:unstructured"
                sling:resourceType="foundation/components/parsys"
                components="[/apps/aau-42/components/components/lms-user-media]">
            </par>
        </department-resources-main>
    </jcr:content>
    <images/>
</jcr:root>

模板数据,位于/ apps / aau-42 / templates / department-resources-main:

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" 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"
    jcr:description="Template for AAU Main Department Resources Pages"
    jcr:primaryType="cq:Template"
    allowedParents="[/apps/aau-42/templates/department]"
    jcr:title="AAU Main Department Resources Page">
    <jcr:content
        cq:allowedTemplates="[/apps/aau-42/templates/department_resources_detail]"
        jcr:primaryType="cq:PageContent"
        sling:resourceType="aau-42/components/pages/department-resources-main" />
</jcr:root>

页面组件数据,位于/ apps / aau-42 / components / pages / department-resources-main:

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
    jcr:description="Main Department Resources Page"
    jcr:primaryType="cq:Component"
    jcr:title="Main Department Resources Page"
    sling:resourceSuperType="aau-42/components/pages/base"/>

1 个答案:

答案 0 :(得分:4)

对于将来看到此内容的人,请参阅@anotherdave的评论。缓存的东西之前已经咬过我了;我早该知道。作为一般规则,如果你认为应该工作的东西在CQ中不起作用,请始终清除缓存或尝试使用新的浏览器!