From 757e95ab86901bdda095b9019a4bcc9c82814b2a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 18 Mar 2025 09:57:28 +0100 Subject: [PATCH 1/3] set previewConverters and convertToPdf --- out/out.AttributeMgr.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/out/out.AttributeMgr.php b/out/out.AttributeMgr.php index fba8266df..845a426d3 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); From 9b2c120b5f13e7b10f61f7cb5311187afb675807 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 18 Mar 2025 09:57:45 +0100 Subject: [PATCH 2/3] call hooks for show document and folder row --- views/bootstrap/class.AttributeMgr.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index 5e16006ab..a026a9d96 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 "".getMLText("action")."\n"; print "\n\n\n"; foreach($res['contents'] as $content) { - $doc = $content->getDocument(); + $document = $content->getDocument(); $extracontent = array(); $extracontent['below_title'] = $this->getListRowPath($doc); - echo $this->documentListRow($doc, $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); } print ""; } From df8d6edcffd5ec5fbfa29332fa121496de520f96 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 18 Mar 2025 09:58:49 +0100 Subject: [PATCH 3/3] add changes for 5.1.39 --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index ed0c07157..e2ee1f921 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,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