將體驗片段從一個子資料夾複製到另一個子資料夾
此頁面說明如何將體驗片段從一個子資料夾複製到另一個子資料夾。
說明 description
環境
Adobe Experience Manager
問題
有一個資料夾(例如: myfolder)位於以下路徑中: /content/experience-fragments
,以及中的 體驗片段 屬性主控台、自訂體驗片段範本已新增至 允許的範本 屬性。
現在,當嘗試從一個子資料夾複製/移動體驗片段時 test-1 至另一個子資料夾 test-2,GUI主控台中會顯示錯誤,且貼上/移動作業會因類似錯誤而失敗:
/content/experience-fragments/_1/_1_1/test-xf (Experience Fragment Template) not allowed below /content/experience-fragments/_1/test-xf
解決方法 resolution
解決方案
若要在子資料夾上啟用複製/移動操作,需要在子資料夾下方新增一個路徑 cq:allowedTemplates
上層資料夾的屬性 /libs/cq/experience-fragments/components/experiencefragment/template
.
這是因為複製/移動作業在路徑上與預設體驗片段元件緊密結合 /libs/cq/experience-fragments/components/experiencefragment/template
.
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f