Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Including UserForms on a template

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 319 Views
  • borriej
    Community Member
    267 Posts

    Including UserForms on a template Link to this post


    I have a reservation form which is on www.mysite.com/form1
    Everything is very nicely styled with css, also the custom errors are set.

    Now i have a pageType 'Diensten' where I want to include this form at the bottom of the page.

    So i use:

    class Diensten_Controller extends Page_Controller {
    function ShowForm(){
          $get = DataObject::get_one('UserDefinedForm');
          return new UserDefinedForm_Controller($get);



    <% control ShowForm %>
    <% end_control %>

    The form shows on all pages, BUT:
    - the custom error messages are the default onces, not the onces i've set
    - the styling of the error message is different

    WHY? and HOW can i fix this?

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.