Skip to content

Commit

Permalink
[TASK] Update LUXletter for usage of georgringer/news 11.0.0 or newer
Browse files Browse the repository at this point in the history
Because news uses own CType instead of list_type elements, we have to adjust the templates related to newslists

Related: https://github.com/in2code-de/luxletter/pull/204/files
  • Loading branch information
einpraegsam committed Feb 2, 2024
1 parent fa66ff9 commit 9ecde16
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ lib {
}

// Settings for EXT:news
tt_content {
news_pi1.templateName = NewsList
news_newsliststicky.templateName = NewsList
news_newsselectedlist.templateName = NewsList
}
plugin.tx_news {
view {
templateRootPaths {
Expand Down
9 changes: 1 addition & 8 deletions Resources/Private/FluidStyledMailContent/Templates/List.html
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
<f:if condition="{data.list_type} == 'news_pi1'">
<f:then>
<f:cObject typoscriptObjectPath="tt_content.list.20.{data.list_type}" data="{data}" table="tt_content" />
</f:then>
<f:else>
<f:render partial="NotYetSupported" arguments="{_all}"/>
</f:else>
</f:if>
<f:render partial="NotYetSupported" arguments="{_all}"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<f:cObject typoscriptObjectPath="tt_content.{data.CType}.20" data="{data}" table="tt_content" />
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
"helmich/typo3-typoscript-lint": "^3.1",
"helhum/typo3-console": "^8.0.x-dev"
},
"conflict": {
"georgringer/news": "< 11.0.0"
},
"config": {
"vendor-dir": ".Build/vendor",
"bin-dir": ".Build/bin",
Expand Down
4 changes: 3 additions & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
'depends' => [
'typo3' => '11.5.0-12.4.99'
],
'conflicts' => [],
'conflicts' => [
'news' => '9.0.0-10.99.99'
],
'suggests' => [
'lux' => '0.0.0-0.0.0',
'dashboard' => '0.0.0-0.0.0'
Expand Down

0 comments on commit 9ecde16

Please sign in to comment.