17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 4147 Views |
-
can't create a new page type - trying to debug how /db/build works

24 January 2008 at 12:44pm
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?
-
Re: can't create a new page type - trying to debug how /db/build works

24 January 2008 at 1:20pm
I am going to do a fresh install on a new site and see I can add it there.
-
Re: can't create a new page type - trying to debug how /db/build works

29 January 2008 at 9:08pm
Hello!
I have the same problem. Did you solve it, and if you did, how?
Tomase
-
Re: can't create a new page type - trying to debug how /db/build works

29 January 2008 at 11:21pm
Did you flush the admin side, as per putting ?flush=1 after 'admin/' in the url? That might help...
-
Re: can't create a new page type - trying to debug how /db/build works

31 January 2008 at 12:39am
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
-
Re: can't create a new page type - trying to debug how /db/build works

28 March 2008 at 9:43am
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 -
Re: can't create a new page type - trying to debug how /db/build works

20 May 2008 at 10:05am Last edited: 20 May 2008 10:08am
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.
-
Re: can't create a new page type - trying to debug how /db/build works

20 May 2008 at 12:39pm
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
| 4147 Views | ||
| Go to Top | Next > |



