I have a FooterPage that extends page, and a page extenion:
public function getFooterPage(){
return DataObject::get_one('FooterPage');
}
And then I just loop in Footer.ss <% loop FooterPage %> and include Footer in my every page.
The problem is that I have a contact form in Footer Controller, and it's doesn't show up. If I move my form functions in Page.php it works but I need it only
on Footer.php. ( I have tried $Top.ContactForm, $Up.ContactForm) doesn't work.