Skip to content

Commit

Permalink
Change default backend layout to extended, use simple as default
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszuznanski committed Feb 23, 2024
1 parent fab7a11 commit 453611a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 49 deletions.
1 change: 0 additions & 1 deletion config/system/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@
'features' => [
'headless.elementBodyResponse' => true,
'headless.redirectMiddlewares' => true,
'headless.workspaces' => false,
'security.usePasswordPolicyForFrontendUsers' => true,
'unifiedPageTranslationHandling' => true,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,9 @@ mod {
config {
backend_layout {
colCount = 12
rowCount = 5
rowCount = 4
rows {
1 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.border
colPos = 3
colspan = 12
}
}
}
2 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.contentbefore
Expand All @@ -27,7 +18,7 @@ mod {
}
}
}
3 {
2 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.normal
Expand All @@ -36,7 +27,7 @@ mod {
}
}
}
4 {
3 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.contentafter
Expand All @@ -45,29 +36,10 @@ mod {
}
}
}
5 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.footer1
colPos = 10
colspan = 4
}
2 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.footer2
colPos = 11
colspan = 4
}
3 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.footer3
colPos = 12
colspan = 4
}
}
}
}
}
}
icon = EXT:site_package/Resources/Public/Icons/BackendLayouts/default.svg
icon = EXT:site_package/Resources/Public/Icons/BackendLayouts/simple.svg
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,54 +1,64 @@
mod {
web_layout {
BackendLayouts {
# BACKENDLAYOUT: SIMPLE
simple {
title = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.simple
# BACKENDLAYOUT: EXTENDED
extended {
title = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.extended
config {
backend_layout {
colCount = 12
rowCount = 4
rowCount = 5
rows {
1 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.border
colPos = 3
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.contentbefore
colPos = 8
colspan = 12
}
}
}
2 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.contentbefore
colPos = 8
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.normal
colPos = 0
colspan = 12
}
}
}
3 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.normal
colPos = 0
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.contentafter
colPos = 9
colspan = 12
}
}
}
4 {
columns {
1 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.contentafter
colPos = 9
colspan = 12
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.footer1
colPos = 10
colspan = 4
}
2 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.footer2
colPos = 11
colspan = 4
}
3 {
name = LLL:EXT:site_package/Resources/Private/Language/Backend.xlf:backend_layout.column.footer3
colPos = 12
colspan = 4
}
}
}
}
}
}
icon = EXT:site_package/Resources/Public/Icons/BackendLayouts/simple.svg
icon = EXT:site_package/Resources/Public/Icons/BackendLayouts/default.svg
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions packages/site_package/Resources/Private/Language/Backend.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
<source>Thumbnail</source>
</trans-unit>

<trans-unit id="backend_layout.default">
<source>Default</source>
<trans-unit id="backend_layout.extended">
<source>Extended</source>
</trans-unit>
<trans-unit id="backend_layout.default">
<source>Default</source>
</trans-unit>
<trans-unit id="backend_layout.simple">
<source>Simple</source>
</trans-unit>
Expand Down

0 comments on commit 453611a

Please sign in to comment.