[TASK] Fluid: Register "core" namespace globally 88/51688/3
authorBenni Mack <benni@typo3.org>
Tue, 14 Feb 2017 20:23:31 +0000 (21:23 +0100)
committerBenni Mack <benni@typo3.org>
Wed, 15 Feb 2017 09:18:40 +0000 (10:18 +0100)
The Fluid namespace "core" is now available globally, making
it obsolete to register the namespace manually in each file
any core viewhelper is necessary.

This is also a precursor for integrating Frontend Editing content
editable ViewHelpers in all places of TYPO3 Frontend when
fluid templates are in use.

Resolves: #79817
Releases: master
Change-Id: I7691107fa7c02e71b848cd8d0bb0eecdae5a8171
Reviewed-on: https://review.typo3.org/51688
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mattias Nilsson <tollepjaer@gmail.com>
Tested-by: Mattias Nilsson <tollepjaer@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
59 files changed:
typo3/sysext/about/Resources/Private/Templates/Modules/Index.html
typo3/sysext/backend/Resources/Private/Partials/Backend/Topbar.html
typo3/sysext/backend/Resources/Private/Partials/Clipboard/TabContent.html
typo3/sysext/backend/Resources/Private/Partials/ShortcutToolbarItem/Shortcut.html
typo3/sysext/backend/Resources/Private/Partials/ToolbarItems/ToolbarItem.html
typo3/sysext/backend/Resources/Private/Templates/Clipboard/Main.html
typo3/sysext/backend/Resources/Private/Templates/ContentElement/ElementInformation.html
typo3/sysext/backend/Resources/Private/Templates/ContentElement/MoveElement.html
typo3/sysext/backend/Resources/Private/Templates/DocumentTemplate/Partials/StateIcon.html
typo3/sysext/backend/Resources/Private/Templates/ModuleMenu/Main.html
typo3/sysext/backend/Resources/Private/Templates/ShortcutToolbarItem/DropDown.html
typo3/sysext/backend/Resources/Private/Templates/ShortcutToolbarItem/Item.html
typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/UserToolbarItemDropDown.html
typo3/sysext/backend/Resources/Private/Templates/Wizards/SuggestWizard.html
typo3/sysext/beuser/Resources/Private/Partials/BackendUser/IndexListRow.html
typo3/sysext/beuser/Resources/Private/Partials/BackendUser/OnlineListRow.html
typo3/sysext/beuser/Resources/Private/Partials/BackendUserGroup/IndexListRow.html
typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Compare.html
typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Index.html
typo3/sysext/beuser/Resources/Private/Templates/BackendUserGroup/Index.html
typo3/sysext/beuser/Resources/Private/Templates/Permission/Edit.html
typo3/sysext/beuser/Resources/Private/Templates/Permission/Index.html
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/documentation/Resources/Private/Templates/Document/Download.html
typo3/sysext/extensionmanager/Resources/Private/Templates/Configuration/ShowConfigurationForm.html
typo3/sysext/extensionmanager/Resources/Private/Templates/Distribution/Show.html
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html
typo3/sysext/extensionmanager/Resources/Private/Templates/List/ShowAllVersions.html
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Ter.html
typo3/sysext/extensionmanager/Resources/Private/Templates/UpdateScript/Show.html
typo3/sysext/fluid/Resources/Private/Templates/ViewHelpers/Be/Widget/Paginate/Index.html
typo3/sysext/form/Resources/Private/Backend/Layouts/FormEditor.html
typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Inspector/PropertyGridEditor.html
typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Inspector/RemoveElementEditor.html
typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Inspector/TextEditor.html
typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Modals/InsertElements.html
typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Modals/InsertPages.html
typo3/sysext/form/Resources/Private/Backend/Partials/FormEditor/Stage/_ElementToolbar.html
typo3/sysext/form/Resources/Private/Backend/Templates/FormEditor/Index.html
typo3/sysext/form/Resources/Private/Backend/Templates/FormManager/Index.html
typo3/sysext/indexed_search/Resources/Private/Templates/Administration/Statistic.html
typo3/sysext/indexed_search/Resources/Private/Templates/Administration/StatisticDetails.html
typo3/sysext/lang/Resources/Private/Partials/Icons.html
typo3/sysext/lang/Resources/Private/Templates/Language/ListLanguages.html
typo3/sysext/opendocs/Resources/Private/Templates/DropDown.html
typo3/sysext/opendocs/Resources/Private/Templates/ToolbarItem.html
typo3/sysext/recycler/Resources/Private/Partials/RecordsTable/DeletedRecord.html
typo3/sysext/recycler/Resources/Private/Templates/RecyclerModule/Index.html
typo3/sysext/scheduler/Resources/Private/Templates/Backend/SchedulerModule/InfoScreen.html
typo3/sysext/sys_note/Resources/Private/Templates/Note/List.html
typo3/sysext/taskcenter/Resources/Private/Templates/ListMenu.html
typo3/sysext/tstemplate/Resources/Private/Templates/ConstantEditor.html
typo3/sysext/tstemplate/Resources/Private/Templates/InformationModule.html
typo3/sysext/tstemplate/Resources/Private/Templates/TemplateAnalyzerModuleFunction.html
typo3/sysext/tstemplate/Resources/Private/Templates/TemplateObjectBrowserModuleFunction.html
typo3/sysext/viewpage/Resources/Private/Layouts/DocHeader.html
typo3/sysext/wizard_crpages/Resources/Private/Templates/CreatePagesWizard.html
typo3/sysext/wizard_sortpages/Resources/Private/Templates/SortPagesWizard.html
typo3/sysext/workspaces/Resources/Private/Partials/WorkingTable.html

index 74ccfe2..cce68e2 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 <div class="scaffold-topbar t3js-scaffold-topbar">
        <div class="topbar">
                <div class="topbar-header t3js-topbar-header">
index 0b0eb33..e119f8d 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 <tr>
        <td nowrap="nowrap" class="col-icon">
                <f:format.raw>{content.icon}</f:format.raw>
index 501c48f..e5416b5 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 <div class="dropdown-table-row t3js-topbar-shortcut" data-shortcutid="{shortcut.raw.uid}" data-shortcutgroup="{group.id}">
        <div class="dropdown-table-column dropdown-table-icon">
                <span title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:toolbarItems.shortcut')}">
index 99e1d94..54d3be1 100644 (file)
@@ -1,4 +1,2 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <span class="toolbar-item-icon" title="{f:translate(key: title, htmlEscape: 'TRUE', default: title)}">{icon -> f:format.raw()}</span>
-<span class="toolbar-item-title">{f:translate(key: title, htmlEscape: 'FALSE')}</span>
\ No newline at end of file
+<span class="toolbar-item-title">{f:translate(key: title, htmlEscape: 'FALSE')}</span>
index 25e3699..8dc5c73 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 <form action="" id="clipboard_form">
        <a name="clip_head"></a>
        <div class="row">
index 5e2a0d7..3e8f4e2 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <h1><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_misc.xlf:movingElement" /></h1>
 <div>
     <span {recordTooltip}><core:iconForRecord table="{table}" row="{elRow}" />{recordTitle -> f:format.raw()}</span>
index 9bfb598..5f66e47 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 <f:switch expression="{item.stateIcon}">
        <f:case value="-1"><core:icon identifier="status-dialog-ok" /></f:case>
        <f:case value="1"><core:icon identifier="status-dialog-notification" /></f:case>
index 2fc216a..86fc578 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 <ul class="nav nav-modules" data-role="modulemenu" id="menu">
        <f:for each="{modules}" as="mainModule">
                <li class="modulemenu-group expanded" id="{mainModule.name}" data-modulename="{mainModule.name}" data-navigationcomponentid="{mainModule.navigationComponentId}" data-navigationframescript="{mainModule.navigationFrameScript}" data-navigationframescriptparameters="{mainModule.navigationFrameScriptParameters}">
index 17a2c58..7bdc955 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 <h3 class="dropdown-headline">
        {f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:toolbarItems.bookmarks')}
 </h3>
index 9cf9b95..b0792f0 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 <span class="toolbar-item-icon" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:toolbarItems.bookmarks')}">
        <core:icon identifier="apps-toolbar-menu-shortcut" alternativeMarkupIdentifier="inline" />
 </span>
index 0aae20d..9925ff9 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <f:comment>@deprecated since TYPO3 v8, will be removed in TYPO3 v9</f:comment>
 <div class="autocomplete t3-form-suggest-container">
     <div class="input-group">
index 040a939..c545a92 100644 (file)
@@ -1,6 +1,5 @@
 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 
 <tr>
        <td>
index 0c4100b..e4aff96 100644 (file)
@@ -1,7 +1,5 @@
 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <f:for each="{onlineUser.sessions}" as="session" iteration="it">
        <tr>
                <f:if condition="{it.isFirst}">
index f49d8b9..d1ad7a4 100644 (file)
@@ -1,6 +1,4 @@
 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <tr>
        <td class="col-icon">
                <a href="#" class="t3js-contextmenutrigger" data-table="be_groups" data-uid="{backendUserGroup.uid}" title="{f:if(condition: '{backendUserGroup.description}', then: '{backendUserGroup.description} ')}(id={backendUserGroup.uid})">
index 0bdfe41..a1652a3 100644 (file)
@@ -1,6 +1,5 @@
 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 
 <f:layout name="Default" />
 
index 97ad80b..706b384 100644 (file)
@@ -1,6 +1,5 @@
 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 
 <f:layout name="Default" />
 
index 5ebcd84..98146d5 100644 (file)
@@ -1,6 +1,5 @@
 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 
 <f:layout name="Default" />
 
index a5ac1e0..a3d7e1d 100644 (file)
@@ -1,5 +1,4 @@
 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 
 <f:layout name="Permission" />
 
index 0e536fa..1a270f4 100644 (file)
@@ -1,6 +1,5 @@
 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
 
 <f:layout name="Permission" />
 
index 3b6837d..cd29bb2 100644 (file)
@@ -290,6 +290,9 @@ return [
         'fluid' => [
             'interceptors' => [],
             'namespaces' => [
+                'core' => [
+                    'TYPO3\\CMS\\Core\\ViewHelpers'
+                ],
                 'f' => [
                     'TYPO3Fluid\\Fluid\\ViewHelpers',
                     'TYPO3\\CMS\\Fluid\\ViewHelpers'
index 990899b..8032050 100644 (file)
@@ -1,6 +1,4 @@
 {namespace em=TYPO3\CMS\Extensionmanager\ViewHelpers}
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <f:layout name="main" />
 
 <f:section name="headline">
index f297f1d..7413352 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
 <f:if condition="{configuration.insertAbove}">
        <f:render section="paginator" arguments="{pagination: pagination, recordsLabel: configuration.recordsLabel}" />
 </f:if>
index 287b32d..6cb4559 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <div class="form-editor">
     <div class="t3-form-control-group form-group property-grid">
         <label><span data-template-property="label" /></label>
index afa20c4..b1c92c1 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <div class="t3-form-control-group form-group btn-group-sm">
     <button class="btn btn-default" title="Remove this Element"><core:icon identifier="actions-delete" alternativeMarkupIdentifier="inline"/></button>
-</div>
\ No newline at end of file
+</div>
index 9513d88..00babb9 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <div class="form-editor">
     <div class="t3-form-control-group form-group">
         <label><span data-template-property="label" /></label>
index 1d3c65f..95d125b 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <div id="t3-form-insert-elements-panel">
     <div class="t3-form-x-component-inner-wrapper">
         <f:for each="{insertRenderablesPanelConfiguration}" as="insertRenderablePanelConfiguration">
index ddba751..2f4e0b9 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <div id="t3-form-insert-pages-panel">
     <div class="t3-form-x-component-inner-wrapper">
         <f:for each="{insertRenderablesPanelConfiguration}" as="insertRenderablePanelConfiguration">
index cc9fafd..c040485 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core = TYPO3\CMS\Core\ViewHelpers}
-
 <div class="btn-toolbar-container" data-identifier="elementToolbar">
     <div class="btn-toolbar" data-identifier="elementToolbarButtons">
         <div class="btn-group btn-group-sm" role="group">
index 198c052..5483a49 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <div style="display:none">
        <span class="activateIcon"><span class="btn btn-default" title="{f:translate(key:'button.activate')}"><core:icon identifier="actions-system-extension-install" /></span></span>
        <span class="deactivateIcon"><span class="btn btn-default" title="{f:translate(key:'button.deactivate')}"><core:icon identifier="actions-system-extension-uninstall" /></span></span>
@@ -11,4 +9,4 @@
                        <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>
                </div>
        </div>
-</div>
\ No newline at end of file
+</div>
index 8e37458..e84c974 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
 <?xml version="1.0" encoding="UTF-8" ?>
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"
       xmlns:f="http://xsd.helmut-hummel.de/ns/TYPO3/CMS/Fluid/ViewHelpers">
index bd432cd..18c3c0f 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <f:be.pageRenderer loadJQuery="false" includeRequireJsModules="{0:'TYPO3/CMS/Opendocs/Toolbar/OpendocsMenu'}" />
 
 <h3 class="dropdown-headline">
index 7cd5a80..f646406 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <span class="toolbar-item-icon" title="{f:translate(key: 'toolbaritem', extensionName: 'opendocs')}">
     <core:icon identifier="apps-toolbar-menu-opendocs" alternativeMarkupIdentifier="inline" />
 </span>
index c199162..6e145ae 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
 <tr data-uid="{record.uid}" data-table="{record.table}" data-recordtitle="{record.title}" data-parent-deleted="{record.isParentDeleted}">
        <td nowrap="nowrap">{record.tableTitle}</td>
        <td nowrap="nowrap"><f:format.raw>{record.icon}</f:format.raw> {record.title}</td>
index 60a02b3..937eee1 100644 (file)
@@ -1,5 +1,4 @@
 {namespace notes=TYPO3\CMS\SysNote\ViewHelpers}
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
 
 <f:layout name="Default" />
 
index 058a1f4..06de18b 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <f:if condition="{mainMenu}">
     <f:then>
         <f:be.pageRenderer loadJQuery="false" includeRequireJsModules="{0:'TYPO3/CMS/Taskcenter/Taskcenter'}" />
index 58305a9..78640f4 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <f:be.pageRenderer includeRequireJsModules="{0: 'TYPO3/CMS/Tstemplate/ConstantEditor'}" />
 <h3><f:translate key="{LLPrefix}editConstants"/></h3>
 <div>
index d6250fe..9dd17fc 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <h3><f:translate key="{LLPrefix}templateInformation"/></h3>
 <div>
     <a href="#" class="t3js-contextmenutrigger" data-table="sys_template" data-uid="{templateRecord.uid}">
index 1028a7c..f31ec93 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <f:if condition="{existTemplate}">
     <h3><f:translate key="{LLPrefix}currentTemplate"/></h3>
     <core:iconForRecord table="sys_template" row="{templateRecord}" />
index 92ef2da..df97766 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
 <f:be.pageRenderer
        includeCssFiles="{
                0:'{f:uri.resource(path:\'Css/ui-lightness/jquery-ui-1.10.3.custom.min.css\')}'
index 7185218..8758600 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <f:be.pageRenderer loadJQuery="true" includeRequireJsModules="{0:'TYPO3/CMS/WizardCrpages/WizardCreatePages'}" />
 <h1><f:translate key="{LLPrefix}wiz_crMany"/></h1>
 <div>
index c5d66eb..6865998 100644 (file)
@@ -1,5 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
-
 <f:be.pageRenderer includeRequireJsModules="{0:'TYPO3/CMS/Backend/Modal'}" />
 <h1><f:translate key="{LLPrefix}wiz_sort"/></h1>
 
index f9ab9fa..4060b36 100644 (file)
@@ -1,4 +1,3 @@
-{namespace core=TYPO3\CMS\Core\ViewHelpers}
 <html
        xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
        xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"