範本限制導致頁面複製或移動失敗

目的地路徑不允許來源頁面的範本時,頁面複製和移動作業會失敗。 檢閱並更新cq:allowedTemplatesallowedPathsallowedParentsallowedChildren設定以允許操作。

說明 description

環境

  • Adobe Experience Manager (AEM) Managed Services
  • Adobe Experience Manager as a Cloud Service
  • AEM as a Cloud Service — 網站

問題/症狀:

  • 錯誤訊息指出來源頁面不允許位於目的地路徑下方。
  • 背景工作已提交,但頁面並未移動。
  • 即使目標顯示允許範本,也會封鎖複製或移動作業。
  • 複製或移動作業會失敗,因為範本路徑限制中的規則運算式無效。

原因:

應用程式會透過組態屬性(例如cq:allowedTemplatesallowedPathsallowedParentsallowedChildren)強制執行範本放置規則。 如果來源頁面範本不符合目的地位置所設定的規則,則會封鎖作業。 不正確或限制過度的路徑模式也可能阻止頁面移動。

解決方法 resolution

若要解決此問題,請遵循下列步驟:

  1. 識別指派給您要複製或移動之頁面的範本。
  2. 確認目的地位置允許來源頁面範本。
  3. 如果範本遺失,請將它新增至cq:allowedTemplates
  4. 檢閱範本的allowedPaths設定,並確定目的地路徑符合允許的模式。
  5. 修正路徑限制中無效或限制過嚴格的規則運算式。
  6. 更新allowedParentsallowedChildren (如果這些設定封鎖目的地的頁面)。
  7. 請重試複製或移動作業,並確認頁面是否出現在目的地位置。

相關閱讀

recommendation-more-help
experience-cloud-kcs-help-kbarticles