21492 Posts in 5783 Topics by 2621 members
General Questions
SilverStripe Forums » General Questions » Don't seem to be able to create another pagetype/template despite following the tutorial???
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 386 Views |
-
Don't seem to be able to create another pagetype/template despite following the tutorial???

24 March 2010 at 4:20pm
Hi all,
I'm running through the SS tutorial at
http://doc.silverstripe.org/doku.php?id=tutorial:1-building-a-basic-siteTrying to create a different page type that will allow me to have different versions of a template for specific pages.
Now I simply can not add to the page type drop down list under behaviour tab following the instructions from the tutorial.
Heres what I have done. (basically what the tutorials says to do but I can't get it to work).
created a file HomePage.php (containing)
<?php
/**
* Defines the HomePage page type
*/class HomePage extends Page {
static $db = array(
);
static $has_one = array(
);}
class HomePage_Controller extends Page_Controller {
}
?>and have it in the mysite/code directory
I ?flush1 the site, and have cleaned out the cache but still when I enter the admin there is no Homepage or any other new options to be seen fromt he Behaviour, page type drop down box.
Not sure what to do now.
Any help would be great
-
Re: Don't seem to be able to create another pagetype/template despite following the tutorial???

24 March 2010 at 4:23pm
I got it. I've just worked out that
/dev/build?flush=1
isnt like
/?flush=1
did the build flush and all is now good.
| 386 Views | ||
|
Page:
1
|
Go to Top |

