function getCMSFields() { $fields = parent::getCMSFields(); $fields->push(DropdownField::create("PageID", "Testimonials Holder Page", TestimonialsHolderPage::get()->map()->toArray())->setHasEmptyDefault(true)); return $fields; }
public function Link() { if ($page = TestimonialsHolderPage::get()->first()) { return $page->Link() . '#Testimonial' . $this->ID; } }