Jump to:

23376 Posts in 18176 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Controller / Template Bug?

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

Page: 1 2
Go to End
Author Topic: 1073 Views
  • dompie
    Avatar
    Community Member
    88 Posts

    Re: Controller / Template Bug? Link to this post

    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

  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Re: Controller / Template Bug? Link to this post

    no worries, glad you got there in the end

    1073 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.