内容片段模板 content-fragment-templates
CAUTION
          AEM 6.4已结束扩展支持,本文档将不再更新。 有关更多详细信息,请参阅 . 查找支持的版本 此处.
          CAUTION
          某些内容片段功能需要应用 AEM 6.4 Service Pack 2(6.4.2.0).
          创建内容片段时会选择模板。 它们为新片段提供了基本结构、元素和变量。 用于内容片段的模板受Granite配置管理器的约束。
现成模板保留在以下位置:
/libs/settings/dam/cfm/templates
您可以在下面为内容片段创建特定于站点的模板:
- 
                  
/apps/settings/dam/cfm/templates覆盖现成模板或提供客户特定的应用程序范围模板的位置,这些模板在运行时不会扩展/更改。
 - 
                  
/conf/global/settings/dam/cfm/templates在运行时需要更改的实例范围特定于客户的模板的位置。
 
优先级顺序为(降序) /conf, /apps, /libs.
CAUTION
          您 必须 不会更改 
          /libs 路径。这是因为 
          /libs 在下次升级实例时被覆盖(当您应用修补程序或功能包时,可能会被覆盖)。配置和其他更改的推荐方法是:
          - 
                  
重新创建所需项目(即,
/libs)下/apps - 
                  
在
/apps 
模板的基本结构如下:
conf
  global
    settings
      dam
        cfm
          templates
            <template-name>
              ...
            具体结构为:
+ <template-name>
    - jcr:primaryType
    - jcr:title
    - jcr:description
    - initialAssociatedContent
    - precreateElements
    - version
    + elements
        - jcr:primaryType
        + <element-name>
            - jcr:primaryType
            - jcr:title
            - defaultContent
            - initialContentType
            - name
        ... + other element definitions
    + variations
        - jcr:primaryType
        + <variation-name>
            - jcr:primaryType
            - jcr:title
            - jcr:description
            - name
        ... + other variation definitions
            有关节点及其属性的更多详细信息包括:
- 模板
 
- 元素
 
- 元素名称
 
- 变体
 
- 变体名称
 
recommendation-more-help
            
          2315f3f5-cb4a-4530-9999-30c8319c520e