2017-04-07 110 views
1

我發現它很容易覆蓋outerLayout和templateError核心模板,但我怎樣才能自定義單個錯誤頁面(404,500等)?我已經嘗試了幾個不同的命名選項,在/ lib/modules /撇號/ pages/views/pages和/ lib/modules /撇號模板/視圖中創建文件,但是當我點擊一個錯誤的URL時,在控制檯(本地運行此)返回了一個錯誤:如何覆蓋notFound模板?

Error: template not found: notFound.html

+0

發現:這裏需要: /lib/modules/apostrophe-pages/views/notFound.html 想這是一個位置我沒有嘗試。 – user1007918

回答