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   1140 Views

Avatar
dompie

13 November 2010 at 3:14am (Last edited: 13 November 2010 3:17am), Community Member, 88 Posts

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

13 November 2010 at 3:46am Forum Moderator, 1796 Posts

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