Page commentshttp://www.ssbits.com/home/
http://www.ssbits.com/tutorials/2011/add-flexible-metatags-control-to-pages/#PageComment_1282
@Martijn - I think it is not necessary to override the MetaTags function from SiteTree.php. The controller methods get priority over the model.
class Page extends SiteTree {
public static $db = array(
"Foo" => "Text",
);
}
class Page_Controller extends ContentController {
public function getFoo() {
return 'controller value';
}
}
Calling $Foo from template will result in 'controller value'. I remember using this approach to set the $MetaTitle for DataObject as pages.RSSNamehttp://www.ssbits.com/tutorials/2011/add-flexible-metatags-control-to-pages/#PageComment_1282http://www.ssbits.com/tutorials/2011/add-flexible-metatags-control-to-pages/#PageComment_482
@Martijn van Nieuwenhoven - I like that technique - makes the SEO more relevant. I am going to try this on my current project where I am displaying DataObjects as pages. Thanks for sharing.RSSNamehttp://www.ssbits.com/tutorials/2011/add-flexible-metatags-control-to-pages/#PageComment_482