Skip to content

Commit

Permalink
[BUGFIX] Fix wrong action call if CE is loaded in content elements
Browse files Browse the repository at this point in the history
If a content element, like the youtube or spotify element, is added
to the inline content elements of another extension, e.g. ext:news,
TYPO3 looks after templates of the current controller action, which
is e.g. News->detail. If the CE has not defined its own controller
action, TYPO3 takes the controller name of the parent extension
(news) and can not resolve Detail.html within ext:supi.

This bugfix just adds the missing configuration
extbase.controllerActionName to the according CEs so TYPO3 resolves
the correct template path.

Resolves: #40
  • Loading branch information
helmutstrasser committed May 2, 2024
1 parent 1a79ff2 commit e588086
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ tt_content.tx_supi_button {
tt_content.tx_supi_youtube = FLUIDTEMPLATE
tt_content.tx_supi_youtube {
extbase.controllerExtensionName = Supi
extbase.controllerActionName = youtube
templateName = Youtube
templateRootPaths.0 = EXT:supi/Resources/Private/Templates/
partialRootPaths.0 = EXT:supi/Resources/Private/Partials/
Expand Down Expand Up @@ -409,6 +410,7 @@ tt_content.tx_supi_youtube {
tt_content.tx_supi_maps = FLUIDTEMPLATE
tt_content.tx_supi_maps {
extbase.controllerExtensionName = Supi
extbase.controllerActionName = maps
templateName = Maps
templateRootPaths.0 = EXT:supi/Resources/Private/Templates/
partialRootPaths.0 = EXT:supi/Resources/Private/Partials/
Expand All @@ -435,6 +437,7 @@ tt_content.tx_supi_maps {
tt_content.tx_supi_embed = FLUIDTEMPLATE
tt_content.tx_supi_embed {
extbase.controllerExtensionName = Supi
extbase.controllerActionName = embed
templateName = Embed
templateRootPaths.0 = EXT:supi/Resources/Private/Templates/
partialRootPaths.0 = EXT:supi/Resources/Private/Partials/
Expand All @@ -450,6 +453,7 @@ tt_content.tx_supi_embed {
tt_content.tx_supi_spotify = FLUIDTEMPLATE
tt_content.tx_supi_spotify {
extbase.controllerExtensionName = Supi
extbase.controllerActionName = spotify
templateName = Spotify
templateRootPaths.0 = EXT:supi/Resources/Private/Templates/
partialRootPaths.0 = EXT:supi/Resources/Private/Partials/
Expand Down

0 comments on commit e588086

Please sign in to comment.