You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,28 @@ Several of these helpers are disabled by default but can be enabled in the confi
29
29
- Adds a new "Meta Title" field
30
30
- Automatically applied
31
31
32
-
If you do not add the `HasOnAfterUpdateCMSFieldsExtensionPoint` trait to your base `Page` class then the extension will use an unreliable method of moving the pages. For this reason we suggest adding `use HasOnAfterUpdateCMSFieldsExtensionPoint;` to this class.
32
+
If you do not add the `HasOnAfterUpdateCMSFieldsExtensionPoint` trait to your base `Page` class then the extension will use an unreliable method of moving the pages. For this reason we suggest adding `use HasOnAfterUpdateCMSFieldsExtensionPoint;` to this class.
33
+
34
+
As the trait overrides the constructor you may also set `has_after_update_cms_fields_extension_point` to true which will also enable the new method, however it becomes your responsibility to ensure you have merged the traits functionality into your constructor either manually or using
35
+
36
+
```php
37
+
class Page extends SiteTree {
38
+
39
+
use HasOnAfterUpdateCMSFieldsExtensionPoint {
40
+
HasOnAfterUpdateCMSFieldsExtensionPoint::__construct as __TraitConstruct;
41
+
}
42
+
43
+
public function __construct($record = null, $isSingleton = false, $model = null){
0 commit comments