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 problem?


Go to End


712 Views

Avatar
SilverstripeLearner

Community Member, 15 Posts

18 March 2017 at 1:23am

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.