add new hooks prePreviousVersionsTab and preLatestVersionTab

This commit is contained in:
Uwe Steinmann 2020-09-18 19:24:18 +02:00
parent 0649815e56
commit 0a4fcb4c00
2 changed files with 9 additions and 1 deletions

View File

@ -8,7 +8,7 @@
- removing a document version will not remove attachments of the document anymore
- make document details page like like view document page
- fix selection of documents/folders
- new hooks SeedDMS_View_Document::[startRightColumn|extraVersionsViews]
- new hooks SeedDMS_View_Document::[startRightColumn|extraVersionsViews|prePreviousVersionsTab|preLatestVersionTab]
--------------------------------------------------------------------------------
Changes in version 5.1.19

View File

@ -564,6 +564,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
exit;
}
$txt = $this->callHook('preLatestVersionTab', $latestContent);
if(is_string($txt))
echo $txt;
// verify if file exists
$file_exists=file_exists($dms->contentDir . $latestContent->getPath());
@ -1188,6 +1192,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
?>
<div class="tab-pane <?php if($currenttab == 'previous') echo 'active'; ?>" id="previous">
<?php
$txt = $this->callHook('prePreviousVersionsTab', $versions);
if(is_string($txt))
echo $txt;
$this->contentContainerStart();
print "<table class=\"table\">";