So I tried to create a HomePage page type and I don't see it in the drop-down. I followed these instructions below:
Is there any way I can debug how this gets added?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
So I tried to create a HomePage page type and I don't see it in the drop-down. I followed these instructions below:
Is there any way I can debug how this gets added?
I am going to do a fresh install on a new site and see I can add it there.
Hello!
I have the same problem. Did you solve it, and if you did, how?
Tomase
Did you flush the admin side, as per putting ?flush=1 after 'admin/' in the url? That might help...
I did flush, but the "home" side .... I thought it was the sides using the templates I should flush when doing changes in the templates??
I have now reinnstalled Silverstrip because I didnt choose the "tutorial" version at the first installation. I think my problem with the new page type was because I was putting the php fil in the wrong folder (tutorial). I have not had time to try it again but I suppose the problem should be solved. I'll try it later today :-)
I am having the same problem. I have tried adding a new page type to the tutorial/code folder as in the tutorial "Extending a Basic Site". But the new pages don't come up in the database build or the dropdown.
I have tried refreshing, rebuilding the backend and the front end. I also reinstalled silverstripe and switched to the exe installer. None of these things seem to allow me to add pages.
Have you guys got any solutions?
Cheers,
Chris
I have a similar problem and it is that I want to add a page type to a "theme" and the documentation only shows adding a page type to the "tutorial". Thing is that they have slightly different structures and I can't find any help on this. Can someone help?
I've posted this here because your problem might be related if you didn't select the tutorial when installing.
you cannot add page types to only a theme. All PHP class's and page types are defined in mysite/code/. The code is separate from a theme