將頁面元件與範本建立關聯

下一步是將頁面元件與新的調適型表單範本建立關聯。 這可確保在每次根據新範本的自適應表單轉譯時,都會執行頁面元件中的程式碼。 為了這個教學課程的目的,已在​ 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