Skip to content

Commit

Permalink
Still deliver expected template for backend module
Browse files Browse the repository at this point in the history
Keep old logic to auto determine the expected templates.
Remove no longer used configuration.

Resolves: #11479
  • Loading branch information
d-s-codappix committed Nov 4, 2024
1 parent 94e862d commit f6b1531
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
7 changes: 6 additions & 1 deletion Classes/Controller/Backend/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ protected function initializeView(): void

protected function htmlResponse(?string $html = null): ResponseInterface
{
return parent::htmlResponse($html ?? $this->moduleTemplate->render());
$action = sprintf(
'%s/%s',
str_replace('\\', '/', $this->request->getControllerName()),
ucfirst($this->request->getControllerActionName()),
);
return parent::htmlResponse($html ?? $this->moduleTemplate->render($action));
}
}
5 changes: 0 additions & 5 deletions Configuration/TypoScript/Default/Setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@ module {
tx_thuecat_import_configuration = 0
}
}
view {
templateRootPaths {
0 = EXT:thuecat/Resources/Private/Templates/
}
}
}
}
4 changes: 2 additions & 2 deletions Resources/Private/Templates/Backend/Configuration/Index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2>{f:translate(id: 'module.organisations.headline')}</h2>
</f:section>

<f:section name="ImportConfigurations">
<div class="panel panel-default">
<div class="panel panel-default table-fit">
<table class="table table-striped table-hover">
<thead>
<tr>
Expand Down Expand Up @@ -104,7 +104,7 @@ <h2>{f:translate(id: 'module.organisations.headline')}</h2>
</f:section>

<f:section name="Organisations">
<div class="panel panel-default">
<div class="panel panel-default table-fit">
<table class="table table-striped table-hover">
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Backend/Import/Index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>{f:translate(id: 'module.imports.headline')}</h1>
</f:section>

<f:section name="Imports">
<div class="panel panel-default">
<div class="panel panel-default table-fit">
<table class="table table-striped table-hover">
<thead>
<tr>
Expand Down

0 comments on commit f6b1531

Please sign in to comment.