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
API: Add history tab. Migrate content style variants to BaseElement #123
API: Add history tab. Migrate content style variants to BaseElement #123
Conversation
src/Models/BaseElement.php
Outdated
$elements[$key] = $this->stripNamespacing($value); | ||
} | ||
$config = GridFieldConfig_RecordViewer::create(); | ||
$config->removeComponentsByType('SilverStripe\Forms\GridField\GridFieldPageCount'); |
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.
Minor: it'd be a little more consistent to use GridFieldPageCount::class
here
30aff19
to
f775e8e
Compare
Updates required:
Address separately:
|
b223de0
to
228a540
Compare
A few issues came up while testing this, I'll log them individually once merged. |
Report removed from this pull request, it will be reintroduced in a separate pull request. |
README.md
Outdated
private static $controller_template = 'MyElementHolder'; | ||
``` | ||
|
||
To customise existing block templates such as `Content` and `Form` templates copy the relevant files from |
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.
- templates copy
+ templates, copy
@@ -11,8 +11,7 @@ class ElementContent extends BaseElement | |||
private static $icon = 'dnadesign/silverstripe-elemental:images/content.svg'; | |||
|
|||
private static $db = [ | |||
'HTML' => 'HTMLText', | |||
'Style' => 'Varchar(255)' |
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.
Why was this removed?
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.
Moved to base element
add documentation, tests.
…width in history GridField
…out filterable ID
…ion you are viewing
e4cc99f
to
3361ce2
Compare
@NightJar I've fixed the docs typo and rebased |
History tab changes and report.
Blockers:
Report blockers:
NEW Add support for callable link formatting silverstripe-reports#88UX review for report view.