From ff1a0dd6fc11b7d6505120ec5d3fceed2cb4d9df Mon Sep 17 00:00:00 2001 From: Aled Brown Date: Wed, 21 Nov 2018 15:28:12 +0000 Subject: [PATCH] renderWith Namespace for Template Loading Just calling MyCustomTemplate does not work in SS 4.2.X. Adding the full Namespace as a path is now required. --- .../01_Templates/How_Tos/03_Disable_Anchor_Links.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/02_Developer_Guides/01_Templates/How_Tos/03_Disable_Anchor_Links.md b/docs/en/02_Developer_Guides/01_Templates/How_Tos/03_Disable_Anchor_Links.md index b4c515965..10d2310d1 100644 --- a/docs/en/02_Developer_Guides/01_Templates/How_Tos/03_Disable_Anchor_Links.md +++ b/docs/en/02_Developer_Guides/01_Templates/How_Tos/03_Disable_Anchor_Links.md @@ -45,7 +45,7 @@ use SilverStripe\View\SSViewer; public function RenderCustomTemplate() { SSViewer::setRewriteHashLinks(false); - $html = $this->renderWith('MyCustomTemplate'); + $html = $this->renderWith('My/Namespace/MyCustomTemplate'); SSViewer::setRewriteHashLinks(true); return $html;