Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Where are Page files located?

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: 1160 Views
  • dharmaone
    Avatar
    Community Member
    2 Posts

    Where are Page files located? Link to this post

    I created a Page (copy of page, then renamed) Add-Machine. Type UserDefinedForm. I added fields and I really don't like how the checkboxes are automatically filled.

    I'm trying to find the Add-Machine file or which file to edit to look at the code for the checkbox fields. I just see many versions of Page.ss and some PHP, but nothing with and field definitions.

    thanks,
    -fitz

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Where are Page files located? Link to this post

    I'm a little confused. Did you just create a new page in the admin CMS?

    If so, there are no physical file for this. All pages created in the admin section are just database content.

    UserDefinedForms are pretty basic. I never use them personally, but shouldn't there be an option to not have the checkbox checked by default or similar?

    For UDFs, you can only edit them how you see the in the admin panel. If you want more complex forms, you need to custom write them yourself.

    http://doc.silverstripe.com/doku.php?id=form

    And the tutorial - http://doc.silverstripe.com/doku.php?id=tutorial:3-forms

    Little out of date, but still gives the general idea.

  • dharmaone
    Avatar
    Community Member
    2 Posts

    Re: Where are Page files located? Link to this post

    I did not see any options for the checkboxes and was hoping to edit it in the code.

    But now I see the fields in this manner are database items and don't have their own specific page for the form (but more an extension of Page)

    I will look at the custom forms route.

    thanks,
    -fitz

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