Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

can't create a new page type - trying to debug how /db/build works

Go to End

12 Posts   4632 Views


24 January 2008 at 12:44pm Community Member, 4 Posts

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?


24 January 2008 at 1:20pm Community Member, 4 Posts

I am going to do a fresh install on a new site and see I can add it there.


29 January 2008 at 9:08pm Community Member, 13 Posts


I have the same problem. Did you solve it, and if you did, how?



29 January 2008 at 11:21pm Community Member, 167 Posts

Did you flush the admin side, as per putting ?flush=1 after 'admin/' in the url? That might help...


31 January 2008 at 12:39am Community Member, 13 Posts

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 :-)


28 March 2008 at 9:43am Community Member, 3 Posts

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?



20 May 2008 at 10:05am (Last edited: 20 May 2008 10:08am), Community Member, 3 Posts

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.


20 May 2008 at 12:39pm Forum Moderator, 5511 Posts

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

Go to Top