public function getTitle()
    {
        $title = array();
        $row = $this->getPage();
        if (!$row) {
            return null;
        }
        do {
            if ($row->name != '' && $row->name != 'Home') {
                $title[] = $row->name;
            }
        } while ($row = $row->getParentPage());
        return implode(' - ', $title);
    }
public function getTitle()
    {
        $title = array();
        $row = $this->getPage();
        if (!$row) {
            return null;
        }
        do {
            if ($row->name != '' && $row->name != 'Home') {
                $title[] = $row->name;
            }
        } while ($row = $row->getParentPage());
        return implode(' - ', $title);
    }
public function getTitle ( ) { $ title = array ( ) ; $ row = $ this -> getPage ( ) ; if ( ! $ row ) { return null ; } do { if ( $ row -> name != '' && $ row -> name != 'Home' ) { $ title [ ] = $ row -> name ; } } while ( $ row = $ row -> getParentPage ( ) ) ; return implode ( ' - ' , $ title ) ; }
Returns the title of the page

Can be overridden to customize.

By default names of parent pages will be used

@return string
Returns the title of the page