(I'm trying to follow the book SilverStripe - The Complete Guide to CMS Development.)
I've added a new page type defined in the php file: public_html\mysite\code\JobCategoryHolder.php
So far, so good. The new page type shows up in the CMS backend. I can create a page based on this type.
However, I now need to change the template that matches that page type. The book tells me to create a template called JobCategoryHolder.ss in public_html\themes\mysite\templates\.
That seems to make logical sense. I did that. I then made some small changes to the template (adding a few xxx after the title, etc) just to see if the new template gets picked up. It doesn't.
I tried the dev/build/?flush=1 but nothing seems to work. I also tried copying the template to the Layout subfolder. That didn't work either. I'm lost now. I can't get my head around what should be in which folder. Any ideas?
Has the folder structure changed between when the book was written? The book was based on 2.3.3 and I'm using 2.4.7.
Many thanks to the clever person who answers this :-)
Tom
(p.s. I'm very impressed with SS so far - and the book - but occasionally find things in the book that don't match what I'm seeing.)