下一步是將頁面元件與新的調適型表單範本建立關聯。 這可確保在每次根據新範本的自適應表單轉譯時,都會執行頁面元件中的程式碼。 在本教學課程中,我們將新增一個最適化表單範本,名為 StoreAndRestoreFromAzure 建立於 AzurePortalStorage 資料夾。
導覽至/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 |