add example on how to set viewAliasName

This commit is contained in:
Uwe Steinmann 2021-04-23 06:54:43 +02:00
parent 1c4b17f053
commit f275ea1927

View File

@ -36,6 +36,11 @@ require_once("SeedDMS/Preview.php");
*/
class SeedDMS_View_ViewFolder extends SeedDMS_Theme_Style {
/**
* set a different name which is used to specify the hooks.
*/
//public $viewAliasName = '';
function data() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
@ -565,7 +570,7 @@ $('body').on('click', '.order-btn', function(ev) {
//$this->htmlAddHeader('<script type="text/javascript" src="../styles/'.$this->theme.'/bootbox/bootbox.min.js"></script>'."\n", 'js');
echo $this->callHook('startPage');
// echo $this->callHook('startPage');
$this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))));
$this->globalNavigation($folder);
$this->contentStart();