Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Controller / Template Bug?


Go to End


10 Posts   1828 Views

Avatar
dompie

Community Member, 88 Posts

13 November 2010 at 3:14am

Edited: 13/11/2010 3:17am

No, this didnt help either. The workaround I found is to put a property in *Page* classes like

class xxx extends Page{
:
public $Teaserable = true;
:
}

This seems to work (as expected) equivalent to *Page_Controller* methods:

class X_Controller extends Page_Controller{
:
public function Teaserable(){
   return true;
}
:
}

Thanks for your effort swaiba :)

Avatar
swaiba

Forum Moderator, 1899 Posts

13 November 2010 at 3:46am

no worries, glad you got there in the end :)

Go to Top