Skip to content
Snippets Groups Projects
Commit d9f49083 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[BUGFIX] Allow selection of root folder in Folder Browser

The Folder Browser now has a button that allows to select the currently
opened browser, which is already possible in the Link Browser for pages.

As a side-effect, this allows the selection of file storages again.

Resolves: #100789
Releases: main, 12.4
Change-Id: Ifa30c7cc1f65a2b313f689f5c06c41734408f403
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79742


Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 93bd1ae3
Branches
Tags
No related merge requests found
......@@ -22,6 +22,15 @@
</h4>
</f:if>
<f:flashMessages queueIdentifier="core.template.flashMessages"/>
<div data-filelist-element="true" data-filelist-type="folder" data-filelist-identifier="{selectedFolder.combinedIdentifier}" data-filelist-state-identifier="{selectedFolder.identifier}">
<button title="{selectedFolder.storage.name}" class="btn btn-default" data-filelist-action="primary">
<core:iconForResource resource="{selectedFolder}" />
<f:variable name="folderLabel" value="{f:if(condition: '{selectedFolder.name} !== \'\'', then: '{selectedFolder.name}', else: '{selectedFolder.storage.name}')}" />
<f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_browse_links.xlf:linkTo" arguments="{0: '/{folderLabel}'}">{selectedFolder.storage.name}: {selectedFolder.identifier}</f:translate>
</button>
</div>
<f:format.raw>{content}</f:format.raw>
</f:section>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment