I am having an issue loading multiple templates, and trying to follow this guide, https://www.silverstripe.org/learn/lessons/v4/working-with-multiple-templates-1
In my app/src I have... Homepage.php
<?php
namespace SilverStripe\Home;
use Page;
class HomePage extends Page
{
}
?>
HomepageController.php
<?php
namespace SilverStripe\Home;
use PageController;
class HomePageController extends PageController
{
}
?>
In my /custom_theme/templates I have
<html>
<head>
..
</head>
<body>
<% include Header %>
<% include Navigation %>
$Layout
<% include Footer %>
</body>
and in my /custom_theme/templates/SilverStripe/Home/Layout/HomePage.ss I have the html markup. Can anyone tell what I'm doing wrong here?, as I am able to choose the Home Page as a page type in the CMS backend, but the page does not load a template at all, simply outputs the content from the CMS.
I have also tried creating a new page template that is not namespaced and based off of the default Page.php and PageController.php code which also does not load. However, the default Page.ss template does load.
theme.yml
---
Name: mytheme
---
SilverStripe\View\SSViewer:
themes:
- 'bdsteps'
- '$public'
- '$default'
SilverStripe\i18n\i18n:
default_locale: 'en_US'
bdsteps = custom_theme