-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC Document SiteTree form field scaffolding #550
DOC Document SiteTree form field scaffolding #550
Conversation
scaffold_cmsfields_settings: | ||
restrictRelations: | ||
- 'EmailRecipients' | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This yaml snippet is pretty long - if you want I can put it inside a collapsed <details>
block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah collapsible would be good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
36c0c70
to
4ceb0b2
Compare
scaffold_cmsfields_settings: | ||
restrictRelations: | ||
- 'EmailRecipients' | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah collapsible would be good.
en/08_Changelogs/6.0.0.md
Outdated
|
||
[`SiteTree::getCMSFields()`](api:SilverStripe\CMS\Model\SiteTree::getCMSFields()) used to create its form fields from scratch, without calling `parent::getCMSFields()`. This meant that all subclasses of `SiteTree` (i.e. all of your `Page` classes) had to explicitly define all form fields. | ||
|
||
`SiteTree::getCMSFields()` now uses same form field scaffolding that all other `DataObject` subclasses use. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`SiteTree::getCMSFields()` now uses same form field scaffolding that all other `DataObject` subclasses use. | |
`SiteTree::getCMSFields()` now uses the same form field scaffolding that all other `DataObject` subclasses use. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Also updates best practices around scaffolding form fields.
4ceb0b2
to
f019154
Compare
Also updates best practices around scaffolding form fields.
Issue