first commit
This commit is contained in:
commit
1218dd1517
12716 files changed
+989233
No files matched your search
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
|
||||
\TYPO3\CMS\Core\Resource\Index\MetaDataRepository::class,
|
||||
'recordPostRetrieval',
|
||||
\TYPO3\CMS\Frontend\Aspect\FileMetadataOverlayAspect::class,
|
||||
'languageAndWorkspaceOverlay'
|
||||
);
|
||||
|
||||
// Register all available content objects
|
||||
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'], [
|
||||
'TEXT' => \TYPO3\CMS\Frontend\ContentObject\TextContentObject::class,
|
||||
'CASE' => \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class,
|
||||
'COA' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class,
|
||||
'COA_INT' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject::class,
|
||||
'USER' => \TYPO3\CMS\Frontend\ContentObject\UserContentObject::class,
|
||||
'USER_INT' => \TYPO3\CMS\Frontend\ContentObject\UserInternalContentObject::class,
|
||||
'FILE' => \TYPO3\CMS\Frontend\ContentObject\FileContentObject::class,
|
||||
'FILES' => \TYPO3\CMS\Frontend\ContentObject\FilesContentObject::class,
|
||||
'IMAGE' => \TYPO3\CMS\Frontend\ContentObject\ImageContentObject::class,
|
||||
'IMG_RESOURCE' => \TYPO3\CMS\Frontend\ContentObject\ImageResourceContentObject::class,
|
||||
'CONTENT' => \TYPO3\CMS\Frontend\ContentObject\ContentContentObject::class,
|
||||
'RECORDS' => \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::class,
|
||||
'HMENU' => \TYPO3\CMS\Frontend\ContentObject\HierarchicalMenuContentObject::class,
|
||||
'LOAD_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\LoadRegisterContentObject::class,
|
||||
'RESTORE_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\RestoreRegisterContentObject::class,
|
||||
'TEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\TemplateContentObject::class,
|
||||
'FLUIDTEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::class,
|
||||
'SVG' => \TYPO3\CMS\Frontend\ContentObject\ScalableVectorGraphicsContentObject::class,
|
||||
'EDITPANEL' => \TYPO3\CMS\Frontend\ContentObject\EditPanelContentObject::class
|
||||
]);
|
||||
|
||||
// Register eID provider for showpic
|
||||
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = \TYPO3\CMS\Frontend\Controller\ShowImageController::class . '::processRequest';
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
|
||||
options.saveDocView = 1
|
||||
options.saveDocNew = 1
|
||||
options.saveDocNew.pages = 0
|
||||
options.saveDocNew.sys_file = 0
|
||||
options.saveDocNew.sys_file_metadata = 0
|
||||
options.disableDelete.sys_file = 1
|
||||
');
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
|
||||
'
|
||||
# Content selection
|
||||
styles.content.get = CONTENT
|
||||
styles.content.get {
|
||||
table = tt_content
|
||||
select {
|
||||
orderBy = sorting
|
||||
where = {#colPos}=0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Content element rendering
|
||||
tt_content = CASE
|
||||
tt_content {
|
||||
key {
|
||||
field = CType
|
||||
}
|
||||
default = TEXT
|
||||
default {
|
||||
field = CType
|
||||
htmlSpecialChars = 1
|
||||
wrap = <p style="background-color: yellow; padding: 0.5em 1em;"><strong>ERROR:</strong> Content Element with uid "{field:uid}" and type "|" has no rendering definition!</p>
|
||||
wrap.insertData = 1
|
||||
}
|
||||
}
|
||||
'
|
||||
);
|
||||
|
||||
// Registering hooks for the tree list cache
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
|
||||
|
||||
// Register hook to show preview info
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_eofe']['preview-message'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->displayPreviewInfoMessage';
|
||||
|
||||
// Register for hooks to show preview of tt_content elements in page module
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['image'] =
|
||||
\TYPO3\CMS\Frontend\Hooks\PageLayoutView\ImagePreviewRenderer::class;
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['textpic'] =
|
||||
\TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextpicPreviewRenderer::class;
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['text'] =
|
||||
\TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextPreviewRenderer::class;
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['textmedia'] =
|
||||
\TYPO3\CMS\Frontend\Hooks\PageLayoutView\TextmediaPreviewRenderer::class;
|
||||
|
||||
// Register search key shortcuts
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
|
||||
|
||||
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)
|
||||
->registerIcon(
|
||||
'wizard-backendlayout',
|
||||
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
|
||||
['name' => 'table']
|
||||
);
|
||||
|
||||
// Include new content elements to modWizards
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
|
||||
"@import 'EXT:frontend/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.tsconfig'"
|
||||
);
|
||||
// Include FormEngine adjustments
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
|
||||
"@import 'EXT:frontend/Configuration/TSconfig/Page/TCEFORM.tsconfig'"
|
||||
);
|
||||
Reference in new issue
Block a user