From 59844a2ba8a2d371a673bd2da0f46b9609cb18f8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 12 Jan 2024 00:30:21 +0000 Subject: [PATCH] continue implementations --- Theme/Backend/Components/Compound/BaseView.php | 4 ++-- Theme/Backend/Components/Compound/compound.tpl.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Theme/Backend/Components/Compound/BaseView.php b/Theme/Backend/Components/Compound/BaseView.php index 4cb88f6..ec719fa 100644 --- a/Theme/Backend/Components/Compound/BaseView.php +++ b/Theme/Backend/Components/Compound/BaseView.php @@ -60,7 +60,7 @@ class BaseView extends View * @var \Modules\Media\Models\Media[] * @since 1.0.0 */ - public array $files = []; + public array $docs = []; /** * {@inheritdoc} @@ -81,7 +81,7 @@ class BaseView extends View /** @var array{0:string, 1?:string, 2?:array} $data */ $this->form = $data[0]; $this->virtualPath = $data[1] ?? $this->virtualPath; - $this->files = $data[2] ?? $this->files; + $this->docs = $data[2] ?? $this->docs; return parent::render(); } diff --git a/Theme/Backend/Components/Compound/compound.tpl.php b/Theme/Backend/Components/Compound/compound.tpl.php index 4bca6a9..8505e2f 100644 --- a/Theme/Backend/Components/Compound/compound.tpl.php +++ b/Theme/Backend/Components/Compound/compound.tpl.php @@ -37,11 +37,11 @@ - files as $file) : ?> + docs as $doc) : ?> - printHtml($file->id); ?> - printHtml($file->name); ?> + printHtml($doc->id); ?> + printHtml($doc->title); ?>