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.

Form Questions /

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

Form Custom-Layout


Go to End


2447 Views

Avatar
luisq

Community Member, 15 Posts

21 February 2009 at 11:45am

I'm trying to make a form, where I can have an image next to it. So it look something like this
___________________
| |
| Content/text |
| |
| Form | Image |
| |
| |
___________________

I understand how to change the layout for custom pages (like it's showed for the custom home page) This is made by creating a new type of page and making a new layout. But when it's time to make a custom form I don't know what type of code should I use to make it as form-type.

For normal pages we use

class HomePage extends Page {

}

class HomePage_Controller extends Page_Controller {
}

Do I have to use something else for the extend part, instead of Page or Page_Controller?