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

Does every form have to be built from scratch?


Go to End


3 Posts   1660 Views

Avatar
Bluesman

Community Member, 2 Posts

17 December 2009 at 8:32am

Hi, Folks, in the first newbie stages of using SS.

As I'm sure is common, I want to transition existing clients and their websites over to SilverStripe.

Can I just copy and past all of their form html markup somewhere, instead of re-coding each and every form element for dozens of client forms?

Thanks.

Avatar
Willr

Forum Moderator, 5523 Posts

17 December 2009 at 8:54am

Welcome to the Forums Bluesman,

You might have trouble just copying and pasting the form html as you would have your own actions for the form which would need to be brought into SS. Making forms with SS is fairly simple. Tutorial 3 covers the form functionality. If you want an even easier way check out the UserForms modules which allows you to drag + drop in the CMS to construct your form without any PHP coding.

The hardest thing will be if you have specific styles / html which you use for form layout. Your styles will probably need to be changed to fit the HTML the form templates generate - unless you want to override those as well which is a bit tricky.

Avatar
Bluesman

Community Member, 2 Posts

17 December 2009 at 9:39am

Thanks.

I'm used to hand-coding and am finding the CMS a little frustrating - but it will be perfect for clients being able to edit "content".

The thought of all the forms that need to be rebuilt is daunting - not to mention revising/creating the template css for forms.

I will be revising themes/templates to work with their designs, as well.

Just was looking for short cuts, although I suppose all my existing php form processing needs to be re-created as well.