mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-06-18 10:41:33 +02:00
11 lines
219 B
Markdown
11 lines
219 B
Markdown
|
# Manage page relations
|
||
|
|
||
|
To find documents by a Page:
|
||
|
|
||
|
```php
|
||
|
$dms = DMS::getDMSInstance();
|
||
|
$page = SiteTree::get()->filter('URLSegment', 'home')->first();
|
||
|
/** @var DataList $docs */
|
||
|
$docs = $dms->getByPage($page);
|
||
|
```
|