将页面组件与模板关联

下一步是将页面组件与新的自适应表单模板关联。 这可确保在每次基于新模板的自适应表单呈现时都执行页面组件中的代码。 出于本教程的目的,在​ AzurePortalStorage ​文件夹中创建了一个名为​ StoreAndRestoreFromAzure ​的新自适应表单模板。
导航到/conf/AzurePortalStorage/settings/wcm/templates/storeandrestorefromazure/initial/jcr:content节点,添加以下属性并保存更改。

属性名称
属性类型
属性值
sling:resourceType
字符串
azureportalpagecomponent/component/page/storeandfetch

导航到/conf/AzurePortalStorage/settings/wcm/templates/storeandrestorefromazure/structure/jcr:content节点,添加以下属性并保存更改。
| 属性名称 | 属性类型 | 属性值 |
---------------------------------------文-------------------------------------------------------
| sling:resourceType | 字符串 | azureportalpagecomponent/component/page/storeandfetch |

后续步骤

创建与Azure存储的集成

recommendation-more-help
4859a77c-7971-4ac9-8f5c-4260823c6f69