Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_news
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_news
Commits
564cc4c6
Commit
564cc4c6
authored
2 years ago
by
Matthias Adrowski
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Migrate BE tempalte handling
parent
a2db0ec0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Controller/BackendController.php
+1
-3
1 addition, 3 deletions
Classes/Controller/BackendController.php
Resources/Private/Layouts/Backend.html
+52
-59
52 additions, 59 deletions
Resources/Private/Layouts/Backend.html
with
53 additions
and
62 deletions
Classes/Controller/BackendController.php
+
1
−
3
View file @
564cc4c6
...
...
@@ -271,9 +271,7 @@ class BackendController extends ActionController {
* @return \Psr\Http\Message\ResponseInterface
*/
protected
function
createBackendResponse
():
\Psr\Http\Message\ResponseInterface
{
$this
->
getModuleTemplate
();
$this
->
moduleTemplate
->
setContent
(
$this
->
view
->
render
());
return
$this
->
htmlResponse
(
$this
->
moduleTemplate
->
renderContent
());
return
$this
->
htmlResponse
(
$this
->
view
->
render
());
}
/**
...
...
This diff is collapsed.
Click to expand it.
Resources/Private/Layouts/Backend.html
+
52
−
59
View file @
564cc4c6
{namespace core = TYPO3\CMS\Core\ViewHelpers}
{namespace sg=SGalinski\SgNews\ViewHelpers}
<f:if
condition=
"{V11}"
>
<f:then>
<f:be.pageRenderer
includeRequireJsModules=
"{
0: 'TYPO3/CMS/Backend/ContextMenu',
1: 'TYPO3/CMS/Backend/Tooltip',
2: 'TYPO3/CMS/SgNews/Backend'}"
/>
<h1>
<f:render
section=
"headline"
/>
</h1>
<f:render
section=
"content"
/>
</f:then>
<f:else>
<f:be.container
includeRequireJsModules=
"{
0: 'TYPO3/CMS/Backend/ContextMenu',
1: 'TYPO3/CMS/Backend/Tooltip',
2: 'TYPO3/CMS/SgNews/Backend'}"
>
<div
class=
"module"
data-module-id=
""
data-module-name=
""
>
<div
class=
"module-docheader t3js-module-docheader"
>
<div
class=
"module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation"
>
<div
class=
"module-docheader-bar-column-left"
>
<f:for
each=
"{docHeader.menus}"
as=
"menu"
>
<f:be.menus.actionMenu
additionalAttributes=
"{name: menu.identifier}"
>
<f:for
each=
"{menu.menuItems}"
as=
"menuItem"
>
<option
value=
"{menuItem.href}"
{
f:if
(
condition:
'{
menuItem.active
}',
then:
'
selected=
"selected"
')}
>
{menuItem.title}
</option>
</f:for>
</f:be.menus.actionMenu>
<f:be.container
includeRequireJsModules=
"{
0: 'TYPO3/CMS/Backend/ContextMenu',
1: 'TYPO3/CMS/Backend/Tooltip',
2: 'TYPO3/CMS/SgNews/Backend'}"
>
<div
class=
"module"
data-module-id=
""
data-module-name=
""
>
<div
class=
"module-docheader t3js-module-docheader"
>
<div
class=
"module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation"
>
<div
class=
"module-docheader-bar-column-left"
>
<f:for
each=
"{docHeader.menus}"
as=
"menu"
>
<f:be.menus.actionMenu
additionalAttributes=
"{name: menu.identifier}"
>
<f:for
each=
"{menu.menuItems}"
as=
"menuItem"
>
<option
value=
"{menuItem.href}"
{
f:if
(
condition:
'{
menuItem.active
}',
then:
'
selected=
"selected"
')}
>
{menuItem.title}
</option>
</f:for>
</div>
<div
class=
"module-docheader-bar-column-right"
>
<span
class=
"typo3-docheader-pagePath"
>
<f:if
condition=
"{typo3Version} < 9000000"
>
<f:then>
<f:translate
key=
"LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.path"
/>
:
<f:format.raw>
{docHeader.metaInformation.path}
</f:format.raw>
</f:then>
<f:else>
<f:translate
key=
"LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path"
/>
:
<f:format.raw>
{docHeader.metaInformation.path}
</f:format.raw>
</f:else>
</f:if>
</span>
<f:format.raw>
{docHeader.metaInformation.recordInformation}
</f:format.raw>
</div>
</div>
<div
class=
"module-docheader-bar module-docheader-bar-buttons t3js-module-docheader-bar t3js-module-docheader-bar-buttons"
>
<div
class=
"module-docheader-bar-column-left"
>
</div>
<div
class=
"module-docheader-bar-column-right"
>
<f:render
partial=
"ButtonBar"
arguments=
"{buttons:docHeader.buttons.right}"
/>
</div>
</div>
</f:be.menus.actionMenu>
</f:for>
</div>
<div
class=
"module-docheader-bar-column-right"
>
<span
class=
"typo3-docheader-pagePath"
>
<f:if
condition=
"{typo3Version} < 9000000"
>
<f:then>
<f:translate
key=
"LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.path"
/>
:
<f:format.raw>
{docHeader.metaInformation.path}
</f:format.raw>
</f:then>
<f:else>
<f:translate
key=
"LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path"
/>
:
<f:format.raw>
{docHeader.metaInformation.path}
</f:format.raw>
</f:else>
</f:if>
</span>
<f:format.raw>
{docHeader.metaInformation.recordInformation}
</f:format.raw>
</div>
</div>
<div
id=
"typo3-docbody"
>
<div
id=
"typo3-inner-docbody"
>
<h1>
<f:render
section=
"headline"
/>
</h1>
<f:render
section=
"content"
/>
<div
class=
"module-docheader-bar module-docheader-bar-buttons t3js-module-docheader-bar t3js-module-docheader-bar-buttons"
>
<div
class=
"module-docheader-bar-column-left"
>
</div>
<div
class=
"module-docheader-bar-column-right"
>
<f:render
partial=
"ButtonBar"
arguments=
"{buttons:docHeader.buttons.right}"
/>
</div>
</div>
</f:be.container>
</f:else>
</f:if>
</div>
<f:if
condition=
"{V11}"
>
<f:then>
<div
class=
"module-body t3js-module-body"
>
</f:then>
<f:else>
<div
id=
"typo3-docbody"
>
</f:else>
</f:if>
<div
id=
"typo3-inner-docbody"
>
<h1>
<f:render
section=
"headline"
/>
</h1>
<f:render
section=
"content"
/>
</div>
</div>
</div>
</f:be.container>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment