"Blog", ); public function getCMSFields() { $fields = FieldList::create(); $fields->push(DropdownField::create("BlogID", _t("BlogTagsWidget.Blog", "Blog"), Blog::get()->map())); $this->extend("updateCMSFields", $fields); return $fields; } public function getTags() { $blog = $this->Blog(); if($blog) { return $blog->Tags(); } return array(); } } class BlogTagsWidget_Controller extends Widget_Controller { } }