如何编辑querybuilder以包含cq:page

时间:2015-04-30 16:44:36

标签: cq5 aem jcr sling

我创建了一个表单并将其添加到dam(/content/dam/formsanddocuments/geometrixx-gov)下的geometrixx-gov文件夹中,如下图所示

enter image description here

但是,当我转到http://localhost:4502/editor.html/content/geometrixx-gov/en/allforms.html

时,此表单未显示

allforms.html页面使用querybuilder来获取/content/dam/formsanddocuments/geometrixx-gov中的所有表单。以下是该页面的查询

        <querybuilder
            jcr:created="{Date}2014-02-17T22:47:37.361+05:30"
            jcr:createdBy="admin"
            jcr:lastModified="{Date}2014-03-28T17:52:05.245+05:30"
            jcr:lastModifiedBy="admin"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="fd/fp/components/querybuilder"
            customStylePath="/etc/designs/geometrixx-gov/form_portal_default.css"
            customTemplate="/etc/designs/geometrixx-gov/fp/card/template.html/jcr:content"
            disableSearch="true"
            folderPaths="/content/dam/formsanddocuments/geometrixx-gov"
            portalTitle="All Forms"
            renderType="[PDF,HTML,GUIDE]"
            singleView="Card"
            style="Custom Style"
            viewSwitch="true">
            <view
                jcr:primaryType="nt:unstructured"
                sling:resourceType="fd/fp/components/lenses/view"/>
            <textbar
                jcr:primaryType="nt:unstructured"
                sling:resourceType="fd/fp/components/predicates/textbar"/>
            <left
                jcr:primaryType="nt:unstructured"
                sling:resourceType="foundation/components/parsys">
                <propertiespredicate
                    jcr:created="{Date}2014-03-28T17:45:35.478+05:30"
                    jcr:createdBy="admin"
                    jcr:lastModified="{Date}2014-03-28T17:50:01.642+05:30"
                    jcr:lastModifiedBy="admin"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="fd/fp/components/predicates/propertiespredicate"
                    searchOptionsPredicates="\{&quot;preducateType&quot;:&quot;title&quot;,&quot;statusFilter&quot;:&quot;active&quot;,&quot;captionText&quot;:&quot;Title&quot;,&quot;defaultFilter&quot;:&quot;&quot;,&quot;enabled&quot;:true}"
                    title="Properties"/>
            </left>
            <searchAssets
                jcr:primaryType="nt:unstructured"
                sling:resourceType="fd/fp/search"/>
        </querybuilder>

问题

我可以做什么,以便我添加的表单(DORUsingSchema)也显示在All Forms页面中?

1 个答案:

答案 0 :(得分:0)

您是如何创建DORUsingSchema表单的? 如果使用Forms Manager创建表单 - http://localhost:4502/aem/forms.html/content/dam/formsanddocuments,则会在两个位置创建节点。

  1. / content / dam / formsanddocuments // - 此节点包含表单的元数据。

  2. / content / forms / af // - 这是具有相同相对层次结构的实际表单。

  3. 您已将节点从/ content / forms / af / [project-folder] / [formName]复制到/ content / dam / formsanddocuments / [project-folder],这是不正确的,Form Manager负责创建这些节点

    要在门户中显示表单,您需要修改allforms.html页面中表单门户组件上应用的属性谓词。此属性谓词显示以title&#34; Application For&#34;开头的所有应用程序,您可以更新应用程序标题或更新属性谓词以在表单门户中列出您的表单。

    要在创作模式下打开属性对话框,请单击位于搜索框最左侧位置的搜索图标。