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.

General Questions /

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

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

Controller / Template Bug?


Reply


10 Posts   1147 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, 1798 Posts

13 November 2010 at 3:46am

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