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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2057 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