Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » custom contact us form

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 4246 Views
  • spullen
    Avatar
    14 Posts

    custom contact us form Link to this post

    Is there anyway to customize a contact us form without using the page.ss template?

  • MuTe
    Avatar
    4 Posts

    Re: custom contact us form Link to this post

    I think you can do this from within the administration area, if you look at the demo site goto the contact us page and then the form tab. You can then add fields using the button at the top.

    I have only just started using SS so I may be wrong

  • spullen
    Avatar
    14 Posts

    Re: custom contact us form Link to this post

    well i can add fields and stuff, but the layout is all wrong and I don't know how to change that.

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: custom contact us form Link to this post

    try css

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: custom contact us form Link to this post

    Yeah you want to edit the CSS. Generally the idea is that the HTML is sweet, and the presentation is CSS driven.

    If you upload a screenshot of your page or something I'm sure someone can provide CSS ideas; if not try the WSG mailing list; that's a good CSS maillist.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: custom contact us form Link to this post

    If you're meaning the layout around $Form, which the form from a contact form is rendered into - you can create UserDefinedForm.ss in your project which would allow you to change the layout for that page type (contact form). Styling the form, however, would be playing with the CSS since the form markup is automatically generated by SilverStripe.

    Hope this helps,

    Cheers,
    Sean

  • spullen
    Avatar
    14 Posts

    Re: custom contact us form Link to this post

    So would you just create a UserDefinedForm.ss and put $searchForm in there? And then add the css styles to the content?

  • Pixel
    Avatar
    Community Member
    78 Posts

    Re: custom contact us form Link to this post

    Copy your main Layout include (ie - templates/Layout/Page.ss) into UserDefinedForm.ss and then put $Content, $Form etc into divs and style it with CSS that way.

    4246 Views
Page: 1 2
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.