Limiting allowed components in a template in cq5

浪尽此生 提交于 2019-11-28 12:47:04

The above answer is correct, but if you need more info, as part of the template implementation, you can define the list of components that will be rendered in the sidekick for your template by defining the following property.

components="[/libs/foundation/components/text,/libs/foundation/components/textimage]">

This will sit under the following node (xml format here)

<TEMPLATENAME jcr:primaryType="nt:unstructured">
    <content
            jcr:lastModified="{Date}2014-04-11T13:04:48.855+10:00"
            jcr:lastModifiedBy="admin"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="/libs/foundation/components/parsys"
            components="[/libs/foundation/components/text,/libs/foundation/components/textimage]">
        </content>
</TEMPLATENAME>

As long as you take this with your project to another instance, you'll keep the settings.

always take /etc/designs/projectDesignName directory with you

The component list is saved in your design page. A design page is a page of a "Design Page" template. You should create one for each site / project, and associate it with your page (or page's parent, or page parent's parent) using the page properties: Advanced -> Design, and then export alongside your template.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!