mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-18 15:00:59 +00:00
add new hooks prePreviousVersionsTab and preLatestVersionTab
This commit is contained in:
parent
0649815e56
commit
0a4fcb4c00
|
@ -8,7 +8,7 @@
|
||||||
- removing a document version will not remove attachments of the document anymore
|
- removing a document version will not remove attachments of the document anymore
|
||||||
- make document details page like like view document page
|
- make document details page like like view document page
|
||||||
- fix selection of documents/folders
|
- 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
|
Changes in version 5.1.19
|
||||||
|
|
|
@ -564,6 +564,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$txt = $this->callHook('preLatestVersionTab', $latestContent);
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
|
|
||||||
// verify if file exists
|
// verify if file exists
|
||||||
$file_exists=file_exists($dms->contentDir . $latestContent->getPath());
|
$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">
|
<div class="tab-pane <?php if($currenttab == 'previous') echo 'active'; ?>" id="previous">
|
||||||
<?php
|
<?php
|
||||||
|
$txt = $this->callHook('prePreviousVersionsTab', $versions);
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
|
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
|
|
||||||
print "<table class=\"table\">";
|
print "<table class=\"table\">";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user