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