mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
DOCS Update "download link" example to not reference old functionality
This commit is contained in:
parent
11819a1e16
commit
d95b98d10d
@ -5,9 +5,8 @@
|
|||||||
You can use `DMSDocument::getLink` to retrieve the secure route to download a DMS document:
|
You can use `DMSDocument::getLink` to retrieve the secure route to download a DMS document:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$dms = DMS::inst();
|
$document = DMSDocument::get()->byId(123);
|
||||||
$docs = $dms->getByTag('priority', 'important')->First();
|
$link = $document->getLink();
|
||||||
$link = $doc->getLink();
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Default download behaviour
|
## Default download behaviour
|
||||||
|
Loading…
Reference in New Issue
Block a user