Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Where are Page files located?


Go to End


3 Posts   2351 Views

Avatar
dharmaone

Community Member, 2 Posts

12 December 2008 at 4:08am

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

Avatar
Liam

Community Member, 470 Posts

12 December 2008 at 9:37am

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.

Avatar
dharmaone

Community Member, 2 Posts

13 December 2008 at 1:23am

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