Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » UserForms - get form from control Children

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 923 Views
  • patte
    Community Member
    63 Posts

    UserForms - get form from control Children Link to this post


    I am trying to build a PageScroller collecting all children pages with <% control Children %>.

    One of this pages is a UserForm page. I am able to get the $Content of every normal Page but unfortunately I do not know howto get the form from User itself.



    <% control Children %>
    <div class="sectionElement">
       <div class="elementContent">
    <% end_control %>

    How to get the form itself? Any idea?


  • moloko_man
    Community Member
    72 Posts

    Re: UserForms - get form from control Children Link to this post

    You can't access functions in the Controller of the children pages.

    This discussion talks about it and has a possible hack for getting it to work http://www.silverstripe.org/template-questions/show/11730

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.