Jump to:

2002 Posts in 1422 Topics by 616 members

Form Questions

SilverStripe Forums » Form Questions » Does every form have to be built from scratch?

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

Page: 1
Go to End
Author Topic: 985 Views
  • Bluesman
    Avatar
    Community Member
    2 Posts

    Does every form have to be built from scratch? Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Does every form have to be built from scratch? Link to this post

    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.

  • Bluesman
    Avatar
    Community Member
    2 Posts

    Re: Does every form have to be built from scratch? Link to this post

    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.

    985 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.