diff --git a/Admin/Install/Media.install.json b/Admin/Install/Media.install.json new file mode 100644 index 0000000..31b51f9 --- /dev/null +++ b/Admin/Install/Media.install.json @@ -0,0 +1,7 @@ +[ + { + "name": "Helper", + "virtualPath": "/Modules", + "user": 1 + } +] \ No newline at end of file diff --git a/Admin/Install/Media.php b/Admin/Install/Media.php new file mode 100644 index 0000000..612a8ad --- /dev/null +++ b/Admin/Install/Media.php @@ -0,0 +1,43 @@ + __DIR__ . '/Media.install.json']); + } +} diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 5fcc73c..38d79ef 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -268,6 +268,7 @@ final class ApiController extends Controller $mediaCollection->setDescriptionRaw((string) ($request->getData('description') ?? '')); $mediaCollection->setCreatedBy($request->getHeader()->getAccount()); $mediaCollection->setSources($files); + $mediaCollection->setVirtualPath('/Modules/Helper'); CollectionMapper::create($mediaCollection); diff --git a/Theme/Backend/helper-template-create.tpl.php b/Theme/Backend/helper-template-create.tpl.php index 3844659..49f3e2f 100644 --- a/Theme/Backend/helper-template-create.tpl.php +++ b/Theme/Backend/helper-template-create.tpl.php @@ -48,6 +48,6 @@ echo $this->getData('nav')->render(); ?>