/** * Overload the TreeTitle() method to show a * different value than the default. * * @return string */ public function TreeTitle() { $title = $this->getField('MenuTitle'); if (!$title) { return parent::TreeTitle(); } return $title; }