Jump to:

11003 Posts in 2735 Topics by 1824 members

All other Modules

SilverStripe Forums » All other Modules » Testimonial page error

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 394 Views
  • ravik
    Community Member
    10 Posts

    Testimonial page error Link to this post


    I am using silverstripe v2.4.7 , it is working fine. now i want to incorporate Testimonial page for my cms.
    for that i have created a page Testimonial.php and i put the page into mysite/code folder


    class Testimonial extends Page
       static $db = array (
          'Date' => 'Date',
          'Author' => 'Text',
          'Quote' => 'HTMLText'

       static $has_one = array (
          'TestimonialPage' => 'TestimonialPage'

       public function getCMSFields_forPopup()
          return new FieldSet(
             new CalendarDateField('Date'),
             new TextField('Author'),
             new TextareaField('Quote')
    class Testimonial_Controller extends Page_Controller{
    Then i have created one more page called TestimonialPage.php and i put the page into mysite/code folder


    class TestimonialPage extends Page

       static $has_many = array (
          'Testimonials' => 'Testimonial'

       public function getCMSFields()
          $f = parent::getCMSFields();
          $f->addFieldToTab("Root.Content.Testimonials", new DataObjectManager(
             array('Date' => 'Date','Author'=>'Author','Quote' => 'Quote'),
          return $f;

    class TestimonialPage_Controller extends Page_Controller {

    after that i build, and i logined to admin, there i select the Testimonials page in the dropdown list and click on the go button
    here page is created in the sitetree called Testimonial but
    the TAB Testimonial is not displaying

    Please help me, its very urgent for me.

Page: 1
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.