Jump to:

10929 Posts in 2613 Topics by 1809 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: 907 Views
  • patte
    Avatar
    Community Member
    63 Posts

    UserForms - get form from control Children Link to this post

    Hi,

    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.

    ScrollerPage
    -Page
    -Page
    -UserForm
    -Page

    Layout/ScrollerPage.ss

    ...
    <% control Children %>
    <div class="sectionElement">
       <div class="elementContent">
          $Content
          $Form
       </div>
    </div>
    <% end_control %>
    ...

    How to get the form itself? Any idea?

    patte;-)

  • moloko_man
    Avatar
    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

    907 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.