Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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_jobs
Commits
f6bea83a
Commit
f6bea83a
authored
2 years ago
by
Matthias Adrowski
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Migrate BE Template handling
parent
e187472f
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
-4
1 addition, 4 deletions
Classes/Controller/BackendController.php
Resources/Private/Backend/Layouts/Default.html
+44
-53
44 additions, 53 deletions
Resources/Private/Backend/Layouts/Default.html
with
45 additions
and
57 deletions
Classes/Controller/BackendController.php
+
1
−
4
View file @
f6bea83a
...
@@ -179,9 +179,6 @@ class BackendController extends ActionController {
...
@@ -179,9 +179,6 @@ class BackendController extends ActionController {
* @return \Psr\Http\Message\ResponseInterface
* @return \Psr\Http\Message\ResponseInterface
*/
*/
protected
function
createBackendResponse
():
\Psr\Http\Message\ResponseInterface
{
protected
function
createBackendResponse
():
\Psr\Http\Message\ResponseInterface
{
$moduleTemplateFactory
=
GeneralUtility
::
makeInstance
(
\TYPO3\CMS\Backend\Template\ModuleTemplateFactory
::
class
);
return
$this
->
htmlResponse
(
$this
->
view
->
render
());
$moduleTemplate
=
$moduleTemplateFactory
->
create
(
$this
->
request
);
$moduleTemplate
->
setContent
(
$this
->
view
->
render
());
return
$this
->
htmlResponse
(
$moduleTemplate
->
renderContent
());
}
}
}
}
This diff is collapsed.
Click to expand it.
Resources/Private/Backend/Layouts/Default.html
+
44
−
53
View file @
f6bea83a
{namespace core = TYPO3\CMS\Core\ViewHelpers}
{namespace core = TYPO3\CMS\Core\ViewHelpers}
{namespace sg=SGalinski\SgJobs\ViewHelpers}
{namespace sg=SGalinski\SgJobs\ViewHelpers}
<f:if
condition=
"{V11}"
>
<f:then>
<f:be.pageRenderer
includeCssFiles=
"{0: '{f:uri.resource(path: \'StyleSheets/backend.css\')}'}"
includeRequireJsModules=
"{
0: 'TYPO3/CMS/Backend/ContextMenu',
1: 'TYPO3/CMS/Backend/Tooltip',
2: 'TYPO3/CMS/SgJobs/Backend/SgJobs'}"
/>
<h1>
<f:be.container
<f:render
section=
"headline"
/>
includeCssFiles=
"{0: '{f:uri.resource(path: \'StyleSheets/backend.css\')}'}"
</h1>
includeRequireJsModules=
"{
<f:render
section=
"main"
/>
0: 'TYPO3/CMS/Backend/ContextMenu',
</f:then>
1: 'TYPO3/CMS/Backend/Tooltip',
<f:else>
2: 'TYPO3/CMS/SgJobs/Backend/SgJobs'}"
>
<f:be.container
<div
class=
"module"
data-module-id=
""
data-module-name=
""
>
includeCssFiles=
"{0: '{f:uri.resource(path: \'StyleSheets/backend.css\')}'}"
<div
class=
"module-docheader t3js-module-docheader"
>
includeRequireJsModules=
"{
<div
0: 'TYPO3/CMS/Backend/ContextMenu',
class=
"module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation"
>
1: 'TYPO3/CMS/Backend/Tooltip',
<div
class=
"module-docheader-bar-column-left"
>
2: 'TYPO3/CMS/SgJobs/Backend/SgJobs'}"
>
</div>
<div
class=
"module"
data-module-id=
""
data-module-name=
""
>
<div
class=
"module-docheader-bar-column-right"
>
<div
class=
"module-docheader t3js-module-docheader"
>
<span
class=
"typo3-docheader-pagePath"
>
<div
<f:translate
key=
"LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path"
/>
:
<f:format.raw>
{docHeader.metaInformation.path}
</f:format.raw>
class=
"module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation"
>
</span>
<div
class=
"module-docheader-bar-column-left"
>
<f:format.raw>
{docHeader.metaInformation.recordInformation}
</f:format.raw>
</div>
<div
class=
"module-docheader-bar-column-right"
>
<span
class=
"typo3-docheader-pagePath"
>
<f:translate
key=
"LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path"
/>
:
<f:format.raw>
{docHeader.metaInformation.path}
</f:format.raw>
</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
class=
"btn-toolbar"
role=
"toolbar"
aria-label=
""
>
<f:render
section=
"iconButtons"
/>
</div>
</div>
<div
class=
"module-docheader-bar-column-right"
>
<f:render
partial=
"ButtonBar"
arguments=
"{buttons:docHeader.buttons.right}"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
id=
"typo3-docbody"
>
<div
<div
id=
"typo3-inner-docbody"
>
class=
"module-docheader-bar module-docheader-bar-buttons t3js-module-docheader-bar t3js-module-docheader-bar-buttons"
>
<h1>
<div
class=
"module-docheader-bar-column-left"
>
<f:render
section=
"headline"
/>
<div
class=
"btn-toolbar"
role=
"toolbar"
aria-label=
""
>
</h1>
<f:render
section=
"iconButtons"
/>
<f:render
section=
"main"
/>
</div>
</div>
<div
class=
"module-docheader-bar-column-right"
>
<f:render
partial=
"ButtonBar"
arguments=
"{buttons:docHeader.buttons.right}"
/>
</div>
</div>
</div>
</div>
</f:be.container>
</div>
</f:else>
<f:if
condition=
"{V11}"
>
</f:if>
<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=
"main"
/>
</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