Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.03 KB

File metadata and controls

51 lines (29 loc) · 1.03 KB

dmsPostDocument... - Hooks

Die folgenden Hooks können verwendet werden, um benutzerdefinierte Aktionen auszuführen, nachdem speziellen Operationen mit Dokumenten abgeschlossen wurden.

Content

dmsPostDocumentDownload

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
	}
}

dmsPostDocumentUpload

ToDo

dmsPostDocumentEditing

ToDo

dmsPostDocumentDeletion

ToDo

dmsPostDocumentPublishing

ToDo