Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Implementing complicated form in CMS Admin

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

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

Page: 1
Go to End
Author Topic: 1498 Views
  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Implementing complicated form in CMS Admin Link to this post

    Hi All,

    I have a rather complicated form that I need to add to Silverstripe. Adding the fields is no problem, but for this one, I need to be able to position them exactly as I have here.

    Does anyone have any ideas on how to achieve this? Adding a custom form and an iframe to hold it in the cms (with it's own submit button) is definately an option, but I don't even know how to do that.

    Cheers
    Aaron

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Implementing complicated form in CMS Admin Link to this post

    Sorry - here is the screenshot

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Implementing complicated form in CMS Admin Link to this post

    You can do this with a custom template, no need for iframe really.

    Take a look here - http://doc.silverstripe.com/doku.php?id=form#using_a_custom_template

    Basically you'll have to write your own form and not build one in the admin CMS area.

    If you're looking at having the form show up in the admin area, not sure that is possible with a user defined form/custom template, though as I'm writing this I think I might have read something in the forums on that once. Maybe a developer can shed more light.

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Implementing complicated form in CMS Admin Link to this post

    Thanks LeeUmm,

    But this is for the admin only. The data is displayed in a table on the site itself.

    So still looking for ideas here.

    Aaron

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Implementing complicated form in CMS Admin Link to this post

    After examining the code, there doesn't look like there will be an easy way to add fields in this structure to Silverstripe itself.

    So I guess the only option is to make a custom PHP form, and have it load in an iFrame within the admin. (even a link and/or popup will do the trick)

    I have scoured the forums and Doku all morning, but found nothing. Does anyone know how something like this can be achieved?

    Cheers
    Aaron

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Implementing complicated form in CMS Admin Link to this post

    Sorted it myself

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Implementing complicated form in CMS Admin Link to this post

    How?

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