Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move footer to initialData #6

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions Configuration/TSConfig/Page/BackendLayouts/default.tsconfig
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
mod {
web_layout {
BackendLayouts {
default {
title = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:default
config {
backend_layout {
colCount = 1
rowCount = 2
rows {
1 {
columns {
1 {
name = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:column.above_breadcrumbs
colPos = 1687238554
disallowed {
CType = footer_content
web_layout {
BackendLayouts {
default {
title = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:default
config {
backend_layout {
colCount = 1
rowCount = 2
rows {
1 {
columns {
1 {
name = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:column.above_breadcrumbs
colPos = 1687238554
disallowed {
CType = footer_content
}
}
}
}
2 {
columns {
1 {
name = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:column.main
colPos = 0
disallowed {
CType = footer_content
}
}
}
}
}
}
}
}
}
2 {
columns {
1 {
name = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:column.main
colPos = 0
disallowed {
CType = footer_content
}
}
}
}
}
}
}
}
}
}
}
66 changes: 33 additions & 33 deletions Configuration/TSConfig/Page/BackendLayouts/root.tsconfig
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
mod {
web_layout {
BackendLayouts {
root {
title = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:root
config {
backend_layout {
colCount = 1
rowCount = 2
rows {
1 {
columns {
1 {
name = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:column.main
colPos = 0
disallowed {
CType = footer_content
web_layout {
BackendLayouts {
root {
title = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:root
config {
backend_layout {
colCount = 1
rowCount = 2
rows {
1 {
columns {
1 {
name = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:column.main
colPos = 0
disallowed {
CType = footer_content
}
}
}
}
2 {
columns {
1 {
name = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:column.footer
colPos = 1687238527
allowed {
CType = footer_content
}
maxitems = 1
}
}
}
}
}
}
}
}
2 {
columns {
1 {
name = LLL:EXT:rmnd_headless/Resources/Private/Language/locallang_bl.xlf:column.footer
colPos = 1687238527
allowed {
CType = footer_content
}
maxitems = 1
}
}
}
}
}
}
}
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ initialData {
}
}
}
footer = CONTENT
footer {
table = tt_content
select {
orderBy = sorting
where = {#colPos} = 1687238527
max = 1
}
slide = -1
stdWrap.ifEmpty.cObject = JSON
}
}
}
}
Expand Down
16 changes: 6 additions & 10 deletions Configuration/TypoScript/ContentElement/FooterContent.typoscript
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
tt_content.footer_content =< lib.contentElement
tt_content.footer_content = JSON
tt_content.footer_content {
fields {
content {
dataProcessing {
10 = Remind\Headless\DataProcessing\FlexFormProcessor
10 {
fieldName = pi_flexform
as = flexform
}
}
dataProcessing {
10 = Remind\Headless\DataProcessing\FlexFormProcessor
10 {
fieldName = pi_flexform
as = flexform
}
}
}
3 changes: 0 additions & 3 deletions Configuration/TypoScript/constants.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ plugin.tx_headless {
pid = 0
pid := getEnv(LOGIN_PID)
}
footer {
typeNum = 836
}
}