Die folgenden Hooks können verwendet werden, um benutzerdefinierte Aktionen auszuführen, nachdem speziellen Operationen mit Dokumenten abgeschlossen wurden.
Content
The "dmsPostDocumentDownload" hook is triggered after a documents file has been downloaded. So it is possible to do some custom actions.
It passes the $strFile (file name) and the $document (existing loaded document with refenrence to category).
It does not expect a return value.
(since Version 3.0.0)
// config.php
$GLOBALS['TL_HOOKS']['dmsPostDocumentDownload'][] = array('MyDmsPostDocumentExecutionClass', 'myDmsPostDocumentDownload');
// MyDmsPostDocumentExecutionClass.php
class MyDmsPostDocumentExecutionClass
{
public function myDmsPostDocumentDownload($strFile, \ContaoDMS\Document $document)
{
// do custom actions here
}
}ToDo
ToDo
ToDo
ToDo