From 9e3e2a792ead384ea5c90eb07ef5bed0c0d6c114 Mon Sep 17 00:00:00 2001 From: Stigi Date: Wed, 18 Feb 2026 09:05:51 +0100 Subject: [PATCH 1/2] Create PathInfo.js --- Resources/Public/JavaScript/PathInfo.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Resources/Public/JavaScript/PathInfo.js diff --git a/Resources/Public/JavaScript/PathInfo.js b/Resources/Public/JavaScript/PathInfo.js new file mode 100644 index 0000000..ce98f45 --- /dev/null +++ b/Resources/Public/JavaScript/PathInfo.js @@ -0,0 +1,22 @@ +document.addEventListener('DOMContentLoaded', function () { + if (!window.uploadFolderInfo) return; + Object.keys(window.uploadFolderInfo).forEach(function(field) { + var path = window.uploadFolderInfo[field]; + var container = document.querySelector('.form-group[data-local-field="' + field + '"]'); + if (!container) return; + + if (!container.querySelector('.upload-folder-info')) { + var infoDiv = document.createElement('div'); + infoDiv.className = 'upload-folder-info help-block'; + infoDiv.style.marginBottom = '0'; + infoDiv.innerHTML = '
Standard Upload Ordner:
' + path + '
'; + + var fileControls = container.querySelector('.form-control-wrap'); + if (fileControls) { + fileControls.appendChild(infoDiv); + } else { + container.appendChild(infoDiv); + } + } + }); +}); From a7ff9623c196671a0b1d4e5159045743756818f0 Mon Sep 17 00:00:00 2001 From: Stigi Date: Wed, 18 Feb 2026 09:09:16 +0100 Subject: [PATCH 2/2] Add JavaScript logic for dynamic path preview in backend This script provides the visual integration for the default upload folder.