Skip to content

Commit 987a1aa

Browse files
Update docs.
1 parent 1a6f511 commit 987a1aa

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

docs/en/01_basic_usage.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,16 @@ class MyModel extends DataObject
131131
132132
## Unversioned links
133133

134-
The `Link` model has the [`Versioned`](api:SilverStripe\Versioned\Versioned) extension applied to it by default. If you wish for links to not be versioned, then remove the extension from the `Link` model in the project's `app/_config.php` file.
134+
The `Link` model has the [`Versioned`](api:SilverStripe\Versioned\Versioned) extension applied to it by default. If you wish for links to not be versioned, then remove the extension from the `Link` model via configuration `yaml` file.
135135

136-
```php
137-
// app/_config.php
138-
139-
use SilverStripe\LinkField\Models\Link;
140-
use SilverStripe\Versioned\Versioned;
141-
142-
Link::remove_extension(Versioned::class);
136+
```yaml
137+
---
138+
Name: app-link-customization
139+
---
140+
SilverStripe\LinkField\Models\Link:
141+
extensions:
142+
# This project uses non-versioned links
143+
versioned: null
143144
```
144145
145146
If you do this, you don't need to apply the `$owns` configuration described in [basic usage](#basic-usage) above.

0 commit comments

Comments
 (0)