list of documents: output folder where document is located

This commit is contained in:
Uwe Steinmann 2024-03-04 11:17:58 +01:00
parent 88452a63a1
commit 83e131d677
3 changed files with 19 additions and 5 deletions

View File

@ -54,7 +54,14 @@ class SeedDMS_View_Calendar extends SeedDMS_Theme_Style {
else else
$previewer->setConverters($previewconverters); $previewer->setConverters($previewconverters);
$document->verifyLastestContentExpriry(); $document->verifyLastestContentExpriry();
echo $this->documentListRow($document, $previewer); $txt = $this->callHook('documentListItem', $document, $previewer, false, 'calendar');
if(is_string($txt))
echo $txt;
else {
$extracontent = array();
$extracontent['below_title'] = $this->getListRowPath($document);
echo $this->documentListRow($document, $previewer, 0, false, $extracontent);
}
echo "</tbody>\n</table>\n"; echo "</tbody>\n</table>\n";
} }
if($event) { if($event) {

View File

@ -47,7 +47,9 @@ class SeedDMS_View_Dashboard extends SeedDMS_Theme_Style {
if(is_string($txt)) if(is_string($txt))
echo $txt; echo $txt;
else { else {
echo $this->documentListRow($document, $previewer); $extracontent = array();
$extracontent['below_title'] = $this->getListRowPath($document);
echo $this->documentListRow($document, $previewer, false, 0, $extracontent);
} }
} }

View File

@ -51,9 +51,14 @@ class SeedDMS_View_Timeline extends SeedDMS_Theme_Style {
$previewer->setConversionMgr($conversionmgr); $previewer->setConversionMgr($conversionmgr);
else else
$previewer->setConverters($previewconverters); $previewer->setConverters($previewconverters);
$extracontent = array(); $txt = $this->callHook('documentListItem', $document, $previewer, false, 'timeline');
$extracontent['below_title'] = $this->getListRowPath($document); if(is_string($txt))
echo $this->documentListRow($document, $previewer, 0, false, $extracontent); echo $txt;
else {
$extracontent = array();
$extracontent['below_title'] = $this->getListRowPath($document);
echo $this->documentListRow($document, $previewer, 0, false, $extracontent);
}
echo "</tbody>\n</table>\n"; echo "</tbody>\n</table>\n";
} }