Commit 6bac0d8a authored by Benni Mack's avatar Benni Mack
Browse files

[TASK] Fluid: Register "core" namespace globally

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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarMattias Nilsson <tollepjaer@gmail.com>
Tested-by: default avatarMattias Nilsson <tollepjaer@gmail.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 9629cf19
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<f:layout name="Default" />
<f:section name="Content">
......
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<div class="scaffold-topbar t3js-scaffold-topbar">
<div class="topbar">
<div class="topbar-header t3js-topbar-header">
......
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<tr>
<td nowrap="nowrap" class="col-icon">
<f:format.raw>{content.icon}</f:format.raw>
......
{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')}">
......
{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>
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<form action="" id="clipboard_form">
<a name="clip_head"></a>
<div class="row">
......
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<h1>
<f:if condition="{table}">
<small>{table}</small><br />{icon -> f:format.raw()}{title}
......
{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>
......
{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>
......
{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}">
......
{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>
......
{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>
......
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<h3 class="dropdown-headline">
{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.user')}
</h3>
......
{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">
......
{namespace be = TYPO3\CMS\Backend\ViewHelpers}
{namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<tr>
<td>
......
{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}">
......
{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})">
......
{namespace be = TYPO3\CMS\Backend\ViewHelpers}
{namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<f:layout name="Default" />
......
{namespace be = TYPO3\CMS\Backend\ViewHelpers}
{namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<f:layout name="Default" />
......
{namespace be = TYPO3\CMS\Backend\ViewHelpers}
{namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
{namespace core = TYPO3\CMS\Core\ViewHelpers}
<f:layout name="Default" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment