diff --git a/CHANGELOG b/CHANGELOG index de32e5c41..90d827eed 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -330,6 +330,7 @@ - fix setting attributes of type user, group, document, folder when updating a document - objects can be removed from clipboard +- call hooks for document/folder list in attribute manager -------------------------------------------------------------------------------- Changes in version 5.1.38 diff --git a/out/out.AttributeMgr.php b/out/out.AttributeMgr.php index 4c8208c23..76c46b501 100644 --- a/out/out.AttributeMgr.php +++ b/out/out.AttributeMgr.php @@ -57,6 +57,8 @@ if($view) { $view->setParam('enableRecursiveCount', $settings->_enableRecursiveCount); $view->setParam('maxRecursiveCount', $settings->_maxRecursiveCount); $view->setParam('previewWidthList', $settings->_previewWidthList); + $view->setParam('previewConverters', isset($settings->_converters['preview']) ? $settings->_converters['preview'] : array()); + $view->setParam('convertToPdf', $settings->_convertToPdf); $view->setParam('timeout', $settings->_cmdTimeout); $view->setParam('accessobject', $accessop); $view->setParam('xsendfile', $settings->_enableXsendfile); diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index 1701efc17..ac0da91f3 100644 --- a/views/bootstrap/class.AttributeMgr.php +++ b/views/bootstrap/class.AttributeMgr.php @@ -161,7 +161,11 @@ $(document).ready( function() { foreach($res['docs'] as $document) { $extracontent = array(); $extracontent['below_title'] = $this->getListRowPath($document); - echo $this->documentListRow($document, $previewer, false, 0, $extracontent); + $txt = $this->callHook('documentListItem', $document, $previewer, false, 'attributemgr', $extracontent); + if(is_string($txt)) + echo $txt; + else + echo $this->documentListRow($document, $previewer, false, 0, $extracontent); } echo "\n\n"; @@ -176,10 +180,14 @@ $(document).ready( function() { print "