Skip to content
Snippets Groups Projects
Commit d9f0cb9a authored by Frank Naegler's avatar Frank Naegler Committed by Benni Mack
Browse files

[TASK] Add message to Site Settings Overview

If no configurable Site exists, show a message to the user
that explains why nothing exists.

Resolves: #104913
Releases: main
Change-Id: I6e1c39a19d79c82a1552b3d35610b89d6f1b7ba1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86021


Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent 58d598d1
Branches
Tags
No related merge requests found
......@@ -16,7 +16,13 @@
<source>Edit Settings</source>
</trans-unit>
<trans-unit id="overview.message.notEditable" resname="overview.message.notEditable">
<source>This sets of this sites do not provide any configurable settings.</source>
<source>The sets of this sites do not provide any configurable settings.</source>
</trans-unit>
<trans-unit id="overview.noSiteSettingsExists.title" resname="overview.noSiteSettingsExists.title">
<source>No configurable Site Settings found</source>
</trans-unit>
<trans-unit id="overview.noSiteSettingsExists.message" resname="overview.noSiteSettingsExists.message">
<source>See the documentation for instructions on defining settings via site sets.</source>
</trans-unit>
<trans-unit id="edit.title" resname="edit.noSettings.title">
<source>Site Settings for "{siteTitle}"</source>
......@@ -25,7 +31,7 @@
<source>No Settings available</source>
</trans-unit>
<trans-unit id="edit.noSettings.message" resname="edit.noSettings.message">
<source>The site '%s' does provide configurable settings.</source>
<source>The site '%s' does not provide configurable settings.</source>
</trans-unit>
<trans-unit id="edit.yamlExport" resname="edit.yamlExport">
<source>YAML export</source>
......
......@@ -4,6 +4,14 @@
<h1><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_sitesettings.xlf:overview.title"/></h1>
<f:if condition="{sites->f:count} == 0">
<f:be.infobox
title="{f:translate(key:'LLL:EXT:backend/Resources/Private/Language/locallang_sitesettings.xlf:overview.noSiteSettingsExists.title')}"
message="{f:translate(key:'LLL:EXT:backend/Resources/Private/Language/locallang_sitesettings.xlf:overview.noSiteSettingsExists.message')}"
state="{f:constant(name: 'TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_INFO')}"
/>
</f:if>
<div class="card-container">
<f:for each="{sites}" as="c">
<div class="card card-size-small">
......
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