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.

Archive

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
Reply

12 Posts   4632 Views

Avatar
erasul

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:

[url]http://doc.silverstripe.com/doku.php?id=tutorial:1-building-a-basic-site#using_a_different_template_for_the_home_page[/url]

Is there any way I can debug how this gets added?

Avatar
erasul

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.

Avatar
Tomase

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

Hello!

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

Tomase

Avatar
SilverRay

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...

Avatar
Tomase

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

Avatar
Danger

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?

Cheers,
Chris

Avatar
Slurpdog

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.

Avatar
Willr

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