Thanks Sean
I was working through the tutorials and I'd skipped through the Article option and then realised that the ArticlePage was customised but not the Holder.
I've put a debugging email in and it's not being sent. I put it in the same place in ArticlePage and it worked. In admin I can see that the page is set up right, has the icon, is published so I'm halfway there :)
<?php
/**
* Defines the ArticleHolder page type
*/
class ArticleHolder extends Page {
static $db = array( );
static $has_one = array( );
static $allowed_children = array('ArticlePage');
static $icon = "mysite/images/treeicons/news";
}
class ArticleHolder_Controller extends Page_Controller {
function index() {
$e = new Email("myemail@gmail.com", "myemail@gmail.com", "in Article Holder", "test");
$e->send();
}
}
?>
BTW, ?showtemplate=1 didn't seem to do anything but would be a great debugging tool.