first commit
This commit is contained in:
commit
1218dd1517
12716 files changed
+989233
No files matched your search
@@ -0,0 +1,291 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Backend\Controller;
|
||||
|
||||
/**
|
||||
* Definitions for routes provided by EXT:backend
|
||||
* Contains all AJAX-based routes for entry points
|
||||
*
|
||||
* Currently the "access" property is only used so no token creation + validation is made
|
||||
* but will be extended further.
|
||||
*/
|
||||
return [
|
||||
|
||||
// Expand or toggle in legacy file tree
|
||||
'sc_alt_file_navframe_expandtoggle' => [
|
||||
'path' => '/folder/tree/expand',
|
||||
'target' => Controller\FileSystemNavigationFrameController::class . '::ajaxExpandCollapse'
|
||||
],
|
||||
|
||||
// File processing
|
||||
'file_process' => [
|
||||
'path' => '/file/process',
|
||||
'target' => Controller\File\FileController::class . '::processAjaxRequest'
|
||||
],
|
||||
|
||||
// Check if file exists
|
||||
'file_exists' => [
|
||||
'path' => '/file/exists',
|
||||
'target' => Controller\File\FileController::class . '::fileExistsInFolderAction'
|
||||
],
|
||||
|
||||
// Get record details of a child record in IRRE
|
||||
'record_inline_details' => [
|
||||
'path' => '/record/inline/details',
|
||||
'target' => Controller\FormInlineAjaxController::class . '::detailsAction'
|
||||
],
|
||||
|
||||
// Create new inline element
|
||||
'record_inline_create' => [
|
||||
'path' => '/record/inline/create',
|
||||
'target' => Controller\FormInlineAjaxController::class . '::createAction'
|
||||
],
|
||||
|
||||
// Synchronize localization
|
||||
'record_inline_synchronizelocalize' => [
|
||||
'path' => '/record/inline/synchronizelocalize',
|
||||
'target' => Controller\FormInlineAjaxController::class . '::synchronizeLocalizeAction'
|
||||
],
|
||||
|
||||
// Expand / Collapse inline record
|
||||
'record_inline_expandcollapse' => [
|
||||
'path' => '/record/inline/expandcollapse',
|
||||
'target' => Controller\FormInlineAjaxController::class . '::expandOrCollapseAction'
|
||||
],
|
||||
|
||||
// Site configuration inline create route
|
||||
'site_configuration_inline_create' => [
|
||||
'path' => '/siteconfiguration/inline/create',
|
||||
'target' => Controller\SiteInlineAjaxController::class . '::newInlineChildAction'
|
||||
],
|
||||
|
||||
// Validate slug input
|
||||
'record_slug_suggest' => [
|
||||
'path' => '/record/slug/suggest',
|
||||
'target' => Controller\FormSlugAjaxController::class . '::suggestAction'
|
||||
],
|
||||
|
||||
// Site configuration inline open existing "record" route
|
||||
'site_configuration_inline_details' => [
|
||||
'path' => '/siteconfiguration/inline/details',
|
||||
'target' => Controller\SiteInlineAjaxController::class . '::openInlineChildAction'
|
||||
],
|
||||
|
||||
// Add a flex form section container
|
||||
'record_flex_container_add' => [
|
||||
'path' => '/record/flex/containeradd',
|
||||
'target' => Controller\FormFlexAjaxController::class . '::containerAdd',
|
||||
],
|
||||
|
||||
// FormEngine suggest wizard result generator
|
||||
'record_suggest' => [
|
||||
'path' => '/wizard/suggest/search',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\Wizard\SuggestWizardController::class . '::searchAction'
|
||||
],
|
||||
|
||||
// Fetch the tree-structured data from a record for the tree selection
|
||||
'record_tree_data' => [
|
||||
'path' => '/record/tree/fetchData',
|
||||
'target' => Controller\FormSelectTreeAjaxController::class . '::fetchDataAction'
|
||||
],
|
||||
|
||||
// Get data for page tree
|
||||
'page_tree_data' => [
|
||||
'path' => '/page/tree/fetchData',
|
||||
'target' => Controller\Page\TreeController::class . '::fetchDataAction'
|
||||
],
|
||||
|
||||
// Get data for page tree
|
||||
'page_tree_filter' => [
|
||||
'path' => '/page/tree/filterData',
|
||||
'target' => Controller\Page\TreeController::class . '::filterDataAction'
|
||||
],
|
||||
|
||||
// Get page tree configuration
|
||||
'page_tree_configuration' => [
|
||||
'path' => '/page/tree/fetchConfiguration',
|
||||
'target' => Controller\Page\TreeController::class . '::fetchConfigurationAction'
|
||||
],
|
||||
|
||||
// Set temporary mount point
|
||||
'page_tree_set_temporary_mount_point' => [
|
||||
'path' => '/page/tree/setTemporaryMountPoint',
|
||||
'target' => Controller\Page\TreeController::class . '::setTemporaryMountPointAction'
|
||||
],
|
||||
|
||||
// Get shortcut edit form
|
||||
'shortcut_editform' => [
|
||||
'path' => '/shortcut/editform',
|
||||
'target' => Controller\ShortcutController::class . '::showEditFormAction'
|
||||
],
|
||||
|
||||
// Save edited shortcut
|
||||
'shortcut_saveform' => [
|
||||
'path' => '/shortcut/saveform',
|
||||
'target' => Controller\ShortcutController::class . '::updateAction'
|
||||
],
|
||||
|
||||
// Render shortcut toolbar item
|
||||
'shortcut_list' => [
|
||||
'path' => '/shortcut/list',
|
||||
'target' => Controller\ShortcutController::class . '::menuAction'
|
||||
],
|
||||
|
||||
// Delete a shortcut
|
||||
'shortcut_remove' => [
|
||||
'path' => '/shortcut/remove',
|
||||
'target' => Controller\ShortcutController::class . '::removeAction'
|
||||
],
|
||||
|
||||
// Create a new shortcut
|
||||
'shortcut_create' => [
|
||||
'path' => '/shortcut/create',
|
||||
'target' => Controller\ShortcutController::class . '::addAction'
|
||||
],
|
||||
|
||||
// Render systeminformtion toolbar item
|
||||
'systeminformation_render' => [
|
||||
'path' => '/system-information/render',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\SystemInformationController::class . '::renderMenuAction',
|
||||
'parameters' => [
|
||||
'skipSessionUpdate' => 1
|
||||
]
|
||||
],
|
||||
|
||||
// Reload the module menu
|
||||
'modulemenu' => [
|
||||
'path' => '/module-menu',
|
||||
'target' => Controller\BackendController::class . '::getModuleMenu'
|
||||
],
|
||||
'topbar' => [
|
||||
'path' => '/topbar',
|
||||
'target' => Controller\BackendController::class . '::getTopbar'
|
||||
],
|
||||
|
||||
// Log in into backend
|
||||
'login' => [
|
||||
'path' => '/login',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\AjaxLoginController::class . '::loginAction',
|
||||
'access' => 'public'
|
||||
],
|
||||
|
||||
// Log out from backend
|
||||
'logout' => [
|
||||
'path' => '/logout',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\AjaxLoginController::class . '::logoutAction',
|
||||
'access' => 'public'
|
||||
],
|
||||
|
||||
// Preflight check for login form
|
||||
'login_preflight' => [
|
||||
'path' => '/login/preflight',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\AjaxLoginController::class . '::preflightAction',
|
||||
'access' => 'public'
|
||||
],
|
||||
|
||||
// Refresh login of backend
|
||||
'login_refresh' => [
|
||||
'path' => '/login/refresh',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\AjaxLoginController::class . '::refreshAction',
|
||||
],
|
||||
|
||||
// Check if backend session has timed out
|
||||
'login_timedout' => [
|
||||
'path' => '/login/timedout',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\AjaxLoginController::class . '::isTimedOutAction',
|
||||
'access' => 'public',
|
||||
'parameters' => [
|
||||
'skipSessionUpdate' => 1
|
||||
]
|
||||
],
|
||||
|
||||
// Render flash messages
|
||||
'flashmessages_render' => [
|
||||
'path' => '/flashmessages/render',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\FlashMessageController::class . '::getQueuedFlashMessagesAction'
|
||||
],
|
||||
|
||||
// Load context menu for
|
||||
'contextmenu' => [
|
||||
'path' => '/context-menu',
|
||||
'target' => Controller\ContextMenuController::class . '::getContextMenuAction'
|
||||
],
|
||||
|
||||
// Load context menu for
|
||||
'contextmenu_clipboard' => [
|
||||
'path' => '/context-menu/clipboard',
|
||||
'target' => Controller\ContextMenuController::class . '::clipboardAction'
|
||||
],
|
||||
|
||||
// Process data handler commands
|
||||
'record_process' => [
|
||||
'path' => '/record/process',
|
||||
'target' => Controller\SimpleDataHandlerController::class . '::processAjaxRequest'
|
||||
],
|
||||
|
||||
// Process user settings
|
||||
'usersettings_process' => [
|
||||
'path' => '/usersettings/process',
|
||||
'target' => Controller\UserSettingsController::class . '::processAjaxRequest'
|
||||
],
|
||||
|
||||
// Open the image manipulation wizard
|
||||
'wizard_image_manipulation' => [
|
||||
'path' => '/wizard/image-manipulation',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\Wizard\ImageManipulationController::class . '::getWizardContent'
|
||||
],
|
||||
|
||||
// Save a newly added online media
|
||||
'livesearch' => [
|
||||
'path' => '/livesearch',
|
||||
'target' => Controller\LiveSearchController::class . '::liveSearchAction'
|
||||
],
|
||||
|
||||
// Save a newly added online media
|
||||
'online_media_create' => [
|
||||
'path' => '/online-media/create',
|
||||
'target' => Controller\OnlineMediaController::class . '::createAction'
|
||||
],
|
||||
|
||||
// Get icon from IconFactory
|
||||
'icons' => [
|
||||
'path' => '/icons',
|
||||
'target' => \TYPO3\CMS\Core\Controller\IconController::class . '::getIcon'
|
||||
],
|
||||
|
||||
// Get icon cache identifier
|
||||
'icons_cache' => [
|
||||
'path' => '/icons/cache',
|
||||
'target' => \TYPO3\CMS\Core\Controller\IconController::class . '::getCacheIdentifier'
|
||||
],
|
||||
|
||||
// Encode typolink parts on demand
|
||||
'link_browser_encodetypolink' => [
|
||||
'path' => '/link-browser/encode-typolink',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\LinkBrowserController::class . '::encodeTypoLink',
|
||||
],
|
||||
|
||||
// Get languages in page
|
||||
'page_languages' => [
|
||||
'path' => '/records/localize/get-languages',
|
||||
'target' => Controller\Page\LocalizationController::class . '::getUsedLanguagesInPage'
|
||||
],
|
||||
|
||||
// Get summary of records to localize
|
||||
'records_localize_summary' => [
|
||||
'path' => '/records/localize/summary',
|
||||
'target' => Controller\Page\LocalizationController::class . '::getRecordLocalizeSummary'
|
||||
],
|
||||
|
||||
// Localize the records
|
||||
'records_localize' => [
|
||||
'path' => '/records/localize',
|
||||
'target' => Controller\Page\LocalizationController::class . '::localizeRecords'
|
||||
],
|
||||
|
||||
// context help
|
||||
'context_help' => [
|
||||
'path' => '/context-help',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\ContextHelpAjaxController::class . '::getHelpAction'
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,219 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Backend\Controller;
|
||||
|
||||
/**
|
||||
* Definitions for routes provided by EXT:backend
|
||||
* Contains all "regular" routes for entry points
|
||||
*
|
||||
* Please note that this setup is preliminary until all core use-cases are set up here.
|
||||
* Especially some more properties regarding modules will be added until TYPO3 CMS 7 LTS, and might change.
|
||||
*
|
||||
* Currently the "access" property is only used so no token creation + validation is made,
|
||||
* but will be extended further.
|
||||
*/
|
||||
return [
|
||||
// Login screen of the TYPO3 Backend
|
||||
'login' => [
|
||||
'path' => '/login',
|
||||
'access' => 'public',
|
||||
'target' => Controller\LoginController::class . '::formAction'
|
||||
],
|
||||
|
||||
// Main backend rendering setup (previously called backend.php) for the TYPO3 Backend
|
||||
'main' => [
|
||||
'path' => '/main',
|
||||
'referrer' => 'required,refresh-always',
|
||||
'target' => Controller\BackendController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Logout script for the TYPO3 Backend
|
||||
'logout' => [
|
||||
'path' => '/logout',
|
||||
'target' => Controller\LogoutController::class . '::logoutAction'
|
||||
],
|
||||
|
||||
// Register login frameset
|
||||
'login_frameset' => [
|
||||
'path' => '/login/frame',
|
||||
'access' => 'public',
|
||||
'target' => Controller\LoginController::class . '::refreshAction'
|
||||
],
|
||||
|
||||
/** Wizards */
|
||||
// Register table wizard
|
||||
'wizard_table' => [
|
||||
'path' => '/wizard/table',
|
||||
'target' => Controller\Wizard\TableController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register add wizard
|
||||
'wizard_add' => [
|
||||
'path' => '/wizard/add',
|
||||
'target' => Controller\Wizard\AddController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register list wizard
|
||||
'wizard_list' => [
|
||||
'path' => '/wizard/list',
|
||||
'target' => Controller\Wizard\ListController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register edit wizard
|
||||
'wizard_edit' => [
|
||||
'path' => '/wizard/edit',
|
||||
'target' => Controller\Wizard\EditController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register link wizard
|
||||
'wizard_link' => [
|
||||
'path' => '/wizard/link/browse',
|
||||
'target' => \TYPO3\CMS\Backend\Controller\LinkBrowserController::class . '::mainAction'
|
||||
],
|
||||
|
||||
/** File- and folder-related routes */
|
||||
|
||||
// File navigation tree
|
||||
'file_navframe' => [
|
||||
'path' => '/folder/tree',
|
||||
'target' => Controller\FileSystemNavigationFrameController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Editing the contents of a file
|
||||
'file_edit' => [
|
||||
'path' => '/file/editcontent',
|
||||
'target' => Controller\File\EditFileController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Create a new folder
|
||||
'file_newfolder' => [
|
||||
'path' => '/file/new',
|
||||
'target' => Controller\File\CreateFolderController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Rename a file
|
||||
'file_rename' => [
|
||||
'path' => '/file/rename',
|
||||
'target' => Controller\File\RenameFileController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Replace a file with a different one
|
||||
'file_replace' => [
|
||||
'path' => '/file/replace',
|
||||
'target' => Controller\File\ReplaceFileController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Upload new files
|
||||
'file_upload' => [
|
||||
'path' => '/file/upload',
|
||||
'target' => Controller\File\FileUploadController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Add new online media
|
||||
'online_media' => [
|
||||
'path' => '/online-media',
|
||||
'target' => Controller\OnlineMediaController::class . '::mainAction'
|
||||
],
|
||||
|
||||
/** DB Records-related routes */
|
||||
// Register record history module
|
||||
'record_history' => [
|
||||
'path' => '/record/history',
|
||||
'target' => Controller\ContentElement\ElementHistoryController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register new record
|
||||
'db_new' => [
|
||||
'path' => '/record/new',
|
||||
'target' => Controller\NewRecordController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register sort pages
|
||||
'pages_sort' => [
|
||||
'path' => '/pages/sort',
|
||||
'target' => Controller\Page\SortSubPagesController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register create multiple pages
|
||||
'pages_new' => [
|
||||
'path' => '/pages/new',
|
||||
'target' => Controller\Page\NewMultiplePagesController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register new content element module (as whole document)
|
||||
'new_content_element' => [
|
||||
'path' => '/record/content/new',
|
||||
'target' => Controller\ContentElement\NewContentElementController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register new content element module (in modal)
|
||||
'new_content_element_wizard' => [
|
||||
'path' => '/record/content/wizard/new',
|
||||
'target' => Controller\ContentElement\NewContentElementController::class . '::wizardAction'
|
||||
],
|
||||
|
||||
// Register move element module
|
||||
'move_element' => [
|
||||
'path' => '/record/move',
|
||||
'target' => Controller\ContentElement\MoveElementController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register show item module
|
||||
'show_item' => [
|
||||
'path' => '/record/info',
|
||||
'target' => Controller\ContentElement\ElementInformationController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Register browser
|
||||
// @deprecated since TYPO3 v9, will be removed in TYPO3 v10.0.
|
||||
'browser' => [
|
||||
'path' => '/record/browse',
|
||||
'target' => \TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Dummy document - displays nothing but background color.
|
||||
'dummy' => [
|
||||
'path' => '/empty',
|
||||
'target' => Controller\DummyController::class . '::mainAction'
|
||||
],
|
||||
|
||||
/** TYPO3 Core Engine-related routes */
|
||||
/**
|
||||
* TCE gateway (TYPO3 Core Engine) for database handling
|
||||
* This script is a gateway for POST forms to \TYPO3\CMS\Core\DataHandling\DataHandler
|
||||
* that manipulates all information in the database!!
|
||||
* For syntax and API information, see the document 'TYPO3 Core APIs'
|
||||
*/
|
||||
'tce_db' => [
|
||||
'path' => '/record/commit',
|
||||
'target' => Controller\SimpleDataHandlerController::class . '::mainAction'
|
||||
],
|
||||
|
||||
/**
|
||||
* Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms.
|
||||
* This script serves as the file administration part of the TYPO3 Core Engine.
|
||||
* Basically it includes two libraries which are used to manipulate files on the server.
|
||||
*
|
||||
* For syntax and API information, see the document 'TYPO3 Core APIs'
|
||||
*/
|
||||
'tce_file' => [
|
||||
'path' => '/file/commit',
|
||||
'target' => Controller\File\FileController::class . '::mainAction'
|
||||
],
|
||||
|
||||
/**
|
||||
* Main form rendering script
|
||||
* By sending certain parameters to this script you can bring up a form
|
||||
* which allows the user to edit the content of one or more database records.
|
||||
*/
|
||||
'record_edit' => [
|
||||
'path' => '/record/edit',
|
||||
'target' => Controller\EditDocumentController::class . '::mainAction'
|
||||
],
|
||||
|
||||
// Thumbnails
|
||||
'thumbnails' => [
|
||||
'path' => '/thumbnails',
|
||||
'target' => Controller\File\ThumbnailController::class . '::render'
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Commands to be executed by typo3, where the key of the array
|
||||
* is the name of the command (to be called as the first argument after typo3).
|
||||
* Required parameter is the "class" of the command which needs to be a subclass
|
||||
* of Symfony/Console/Command.
|
||||
*
|
||||
* example: bin/typo3 backend:lock
|
||||
*/
|
||||
return [
|
||||
'backend:lock' => [
|
||||
'class' => \TYPO3\CMS\Backend\Command\LockBackendCommand::class
|
||||
],
|
||||
'backend:unlock' => [
|
||||
'class' => \TYPO3\CMS\Backend\Command\UnlockBackendCommand::class
|
||||
],
|
||||
'referenceindex:update' => [
|
||||
'class' => \TYPO3\CMS\Backend\Command\ReferenceIndexUpdateCommand::class
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* An array consisting of implementations of middlewares for a middleware stack to be registered
|
||||
*
|
||||
* 'stackname' => [
|
||||
* 'middleware-identifier' => [
|
||||
* 'target' => classname or callable
|
||||
* 'before/after' => array of dependencies
|
||||
* ]
|
||||
* ]
|
||||
*/
|
||||
return [
|
||||
'backend' => [
|
||||
/** internal: do not use or reference this middleware in your own code */
|
||||
'typo3/cms-core/normalized-params-attribute' => [
|
||||
'target' => \TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute::class,
|
||||
],
|
||||
'typo3/cms-backend/locked-backend' => [
|
||||
'target' => \TYPO3\CMS\Backend\Middleware\LockedBackendGuard::class,
|
||||
'after' => [
|
||||
'typo3/cms-core/normalized-params-attribute'
|
||||
],
|
||||
],
|
||||
'typo3/cms-backend/https-redirector' => [
|
||||
'target' => \TYPO3\CMS\Backend\Middleware\ForcedHttpsBackendRedirector::class,
|
||||
'after' => [
|
||||
'typo3/cms-core/normalized-params-attribute',
|
||||
'typo3/cms-backend/locked-backend',
|
||||
]
|
||||
],
|
||||
'typo3/cms-backend/backend-routing' => [
|
||||
'target' => \TYPO3\CMS\Backend\Middleware\BackendRouteInitialization::class,
|
||||
'after' => [
|
||||
'typo3/cms-backend/https-redirector'
|
||||
]
|
||||
],
|
||||
'typo3/cms-backend/authentication' => [
|
||||
'target' => \TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::class,
|
||||
'after' => [
|
||||
'typo3/cms-backend/backend-routing'
|
||||
]
|
||||
],
|
||||
'typo3/cms-backend/site-resolver' => [
|
||||
'target' => \TYPO3\CMS\Backend\Middleware\SiteResolver::class,
|
||||
'after' => [
|
||||
'typo3/cms-backend/backend-routing'
|
||||
]
|
||||
],
|
||||
/** internal: do not use or reference this middleware in your own code */
|
||||
'typo3/cms-backend/legacy-document-template' => [
|
||||
'target' => \TYPO3\CMS\Backend\Middleware\LegacyBackendTemplateInitialization::class,
|
||||
'after' => [
|
||||
'typo3/cms-backend/authentication'
|
||||
]
|
||||
],
|
||||
/** internal: do not use or reference this middleware in your own code */
|
||||
'typo3/cms-backend/output-compression' => [
|
||||
'target' => \TYPO3\CMS\Backend\Middleware\OutputCompression::class,
|
||||
'after' => [
|
||||
'typo3/cms-backend/authentication'
|
||||
]
|
||||
],
|
||||
/** internal: do not use or reference this middleware in your own code */
|
||||
'typo3/cms-backend/response-headers' => [
|
||||
'target' => \TYPO3\CMS\Backend\Middleware\AdditionalResponseHeaders::class,
|
||||
'after' => [
|
||||
'typo3/cms-backend/output-compression'
|
||||
]
|
||||
],
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,116 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'identifier',
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.ctrl.title',
|
||||
'typeicon_classes' => [
|
||||
'default' => 'mimetypes-x-content-domain',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'identifier' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.identifier',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.identifier',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 35,
|
||||
'max' => 255,
|
||||
// identifier is used as directory name - allow a-z,0-9,_,- as chars only.
|
||||
// unique is additionally checked server side
|
||||
'eval' => 'required, lower, alphanum_x, trim',
|
||||
],
|
||||
],
|
||||
'rootPageId' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.rootPageId',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.rootPageId',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'readOnly' => true,
|
||||
'renderType' => 'selectSingle',
|
||||
'foreign_table' => 'pages',
|
||||
'foreign_table_where' => ' AND (is_siteroot=1 OR (pid=0 AND doktype IN (1,6,7))) AND l10n_parent = 0 ORDER BY pid, sorting',
|
||||
],
|
||||
],
|
||||
'base' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.base',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.base',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
],
|
||||
],
|
||||
'baseVariants' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.baseVariants',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site.baseVariants',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'site_base_variant',
|
||||
'appearance' => [
|
||||
'enabledControls' => [
|
||||
'info' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'languages' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.languages',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'site_language',
|
||||
'foreign_selector' => 'languageId',
|
||||
'foreign_unique' => 'languageId',
|
||||
'size' => 4,
|
||||
'minitems' => 1,
|
||||
'appearance' => [
|
||||
'collapseAll' => true,
|
||||
'enabledControls' => [
|
||||
'info' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandling' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.errorHandling',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'site_errorhandling',
|
||||
'appearance' => [
|
||||
'collapseAll' => true,
|
||||
'enabledControls' => [
|
||||
'info' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'routes' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.routes',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'site_route',
|
||||
'appearance' => [
|
||||
'collapseAll' => true,
|
||||
'enabledControls' => [
|
||||
'info' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => '--palette--;;default,--palette--;;base,
|
||||
--div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.languages, languages,
|
||||
--div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.errorHandling, errorHandling,
|
||||
--div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site.tab.routes, routes',
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'default' => [
|
||||
'showitem' => 'rootPageId, identifier'
|
||||
],
|
||||
'base' => [
|
||||
'showitem' => 'base, baseVariants'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'base',
|
||||
'label_alt' => 'condition',
|
||||
'label_alt_force' => true,
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.ctrl.title',
|
||||
'typeicon_classes' => [
|
||||
'default' => 'mimetypes-x-content-domain',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'base' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.base',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_base_variant.base',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.base.placeholder',
|
||||
],
|
||||
],
|
||||
'condition' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_base_variant.condition',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
[ 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.applicationContext', 'applicationContext == "Production"'],
|
||||
[ 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.environmentVariable', 'getenv("mycontext") == "production"'],
|
||||
],
|
||||
],
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.placeholder',
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => 'base,condition',
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'errorHandler',
|
||||
'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getErrorHandlingTitle',
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.ctrl.title',
|
||||
'type' => 'errorHandler',
|
||||
'typeicon_column' => 'errorHandler',
|
||||
'typeicon_classes' => [
|
||||
'default' => 'default-not-found',
|
||||
'Fluid' => 'mimetypes-text-html',
|
||||
'Page' => 'apps-pagetree-page-content-from-page',
|
||||
'PHP' => 'mimetypes-text-php',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'errorCode' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorCode',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim, int',
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 599,
|
||||
],
|
||||
'size' => 8,
|
||||
'default' => 404,
|
||||
'valuePicker' => [
|
||||
'mode' => '',
|
||||
'items' => [
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.404', '404'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.403', '403'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.500', '500'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.503', '503'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorCode.0', '0'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandler' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'required' => true,
|
||||
'items' => [
|
||||
['', ''],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.fluid', 'Fluid'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.page', 'Page'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.php', 'PHP'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorFluidTemplate' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplate',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorFluidTemplate',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplate.placeholder',
|
||||
],
|
||||
],
|
||||
'errorFluidTemplatesRootPath' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidTemplatesRootPath',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'errorFluidLayoutsRootPath' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidLayoutsRootPath',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'errorFluidPartialsRootPath' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorFluidPartialsRootPath',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'errorContentSource' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorContentSource',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'renderType' => 'inputLink',
|
||||
'eval' => 'required',
|
||||
'fieldControl' => [
|
||||
'linkPopup' => [
|
||||
'options' => [
|
||||
'blindLinkOptions' => 'file,mail,spec,folder',
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorPhpClassFQCN' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_errorhandling.errorPhpClassFQCN',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorPhpClassFQCN.placeholder',
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => '--palette--;;general',
|
||||
],
|
||||
'Fluid' => [
|
||||
'showitem' => '--palette--;;general, errorFluidTemplate,
|
||||
--div--;LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.tab.rootpaths,
|
||||
errorFluidTemplatesRootPath, errorFluidLayoutsRootPath, errorFluidPartialsRootPath',
|
||||
],
|
||||
'Page' => [
|
||||
'showitem' => '--palette--;;general, errorContentSource',
|
||||
],
|
||||
'PHP' => [
|
||||
'showitem' => '--palette--;;general, errorPhpClassFQCN',
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'general' => [
|
||||
'showitem' => 'errorCode, errorHandler'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'languageId',
|
||||
'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getSiteLanguageTitle',
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.ctrl.title',
|
||||
'typeicon_classes' => [
|
||||
'default' => 'mimetypes-x-content-domain',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'languageId' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.languageId',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['Default Language', 0],
|
||||
],
|
||||
'foreign_table' => 'sys_language',
|
||||
'size' => 1,
|
||||
'min' => 1,
|
||||
'max' => 1,
|
||||
],
|
||||
],
|
||||
'title' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 15,
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'English',
|
||||
],
|
||||
],
|
||||
'navigationTitle' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.navigationTitle',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.navigationTitle',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 15,
|
||||
'eval' => 'trim',
|
||||
'placeholder' => 'English',
|
||||
],
|
||||
],
|
||||
'base' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.base',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.base',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'default' => '/',
|
||||
'placeholder' => '/',
|
||||
],
|
||||
],
|
||||
'locale' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.locale',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.locale',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'size' => 10,
|
||||
'placeholder' => 'en_US.UTF-8',
|
||||
],
|
||||
],
|
||||
'iso-639-1' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.iso-639-1',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.iso-639-1',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
// Fed by data provider
|
||||
'items' => [],
|
||||
],
|
||||
],
|
||||
'hreflang' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.hreflang',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.hreflang',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'trim',
|
||||
'size' => 6,
|
||||
'placeholder' => 'en-US',
|
||||
],
|
||||
],
|
||||
'enabled' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 1,
|
||||
'items' => [
|
||||
[
|
||||
0 => '',
|
||||
1 => ''
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
'direction' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.direction',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.direction',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['None', '', ''],
|
||||
['Left to Right', 'ltr', ''],
|
||||
['Right to Left', 'rtl', ''],
|
||||
],
|
||||
],
|
||||
],
|
||||
'typo3Language' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.typo3Language',
|
||||
'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.typo3Language',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
// Fed by data provider
|
||||
'items' => [],
|
||||
'default' => 'default'
|
||||
],
|
||||
],
|
||||
'flag' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.flag',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['global', 'global', 'flags-multiple'],
|
||||
['ad', 'ad', 'flags-ad'],
|
||||
['ae', 'ae', 'flags-ae'],
|
||||
['af', 'af', 'flags-af'],
|
||||
['ag', 'ag', 'flags-ag'],
|
||||
['ai', 'ai', 'flags-ai'],
|
||||
['al', 'al', 'flags-al'],
|
||||
['am', 'am', 'flags-am'],
|
||||
['an', 'an', 'flags-an'],
|
||||
['ao', 'ao', 'flags-ao'],
|
||||
['aq', 'aq', 'flags-aq'],
|
||||
['ar', 'ar', 'flags-ar'],
|
||||
['as', 'as', 'flags-as'],
|
||||
['at', 'at', 'flags-at'],
|
||||
['au', 'au', 'flags-au'],
|
||||
['aw', 'aw', 'flags-aw'],
|
||||
['ax', 'ax', 'flags-ax'],
|
||||
['az', 'az', 'flags-az'],
|
||||
['ba', 'ba', 'flags-ba'],
|
||||
['bb', 'bb', 'flags-bb'],
|
||||
['bd', 'bd', 'flags-bd'],
|
||||
['be', 'be', 'flags-be'],
|
||||
['bf', 'bf', 'flags-bf'],
|
||||
['bg', 'bg', 'flags-bg'],
|
||||
['bh', 'bh', 'flags-bh'],
|
||||
['bi', 'bi', 'flags-bi'],
|
||||
['bj', 'bj', 'flags-bj'],
|
||||
['bl', 'bl', 'flags-bl'],
|
||||
['bm', 'bm', 'flags-bm'],
|
||||
['bn', 'bn', 'flags-bn'],
|
||||
['bo', 'bo', 'flags-bo'],
|
||||
['bq', 'bq', 'flags-bq'],
|
||||
['br', 'br', 'flags-br'],
|
||||
['bs', 'bs', 'flags-bs'],
|
||||
['bt', 'bt', 'flags-bt'],
|
||||
['bv', 'bv', 'flags-bv'],
|
||||
['bw', 'bw', 'flags-bw'],
|
||||
['by', 'by', 'flags-by'],
|
||||
['bz', 'bz', 'flags-bz'],
|
||||
['ca', 'ca', 'flags-ca'],
|
||||
['catalonia', 'catalonia', 'flags-catalonia'],
|
||||
['cc', 'cc', 'flags-cc'],
|
||||
['cd', 'cd', 'flags-cd'],
|
||||
['cf', 'cf', 'flags-cf'],
|
||||
['cg', 'cg', 'flags-cg'],
|
||||
['ch', 'ch', 'flags-ch'],
|
||||
['ci', 'ci', 'flags-ci'],
|
||||
['ck', 'ck', 'flags-ck'],
|
||||
['cl', 'cl', 'flags-cl'],
|
||||
['cm', 'cm', 'flags-cm'],
|
||||
['cn', 'cn', 'flags-cn'],
|
||||
['co', 'co', 'flags-co'],
|
||||
['cr', 'cr', 'flags-cr'],
|
||||
['cs', 'cs', 'flags-cs'],
|
||||
['cu', 'cu', 'flags-cu'],
|
||||
['cv', 'cv', 'flags-cv'],
|
||||
['cw', 'cw', 'flags-cw'],
|
||||
['cx', 'cx', 'flags-cx'],
|
||||
['cy', 'cy', 'flags-cy'],
|
||||
['cz', 'cz', 'flags-cz'],
|
||||
['de', 'de', 'flags-de'],
|
||||
['dj', 'dj', 'flags-dj'],
|
||||
['dk', 'dk', 'flags-dk'],
|
||||
['dm', 'dm', 'flags-dm'],
|
||||
['do', 'do', 'flags-do'],
|
||||
['dz', 'dz', 'flags-dz'],
|
||||
['ec', 'ec', 'flags-ec'],
|
||||
['ee', 'ee', 'flags-ee'],
|
||||
['eg', 'eg', 'flags-eg'],
|
||||
['eh', 'eh', 'flags-eh'],
|
||||
['en-us-gb', 'en-us-gb', 'flags-en-us-gb'],
|
||||
['england', 'england', 'flags-gb-eng'],
|
||||
['gb-eng', 'gb-eng', 'flags-gb-eng'],
|
||||
['er', 'er', 'flags-er'],
|
||||
['es', 'es', 'flags-es'],
|
||||
['et', 'et', 'flags-et'],
|
||||
['eu', 'eu', 'flags-eu'],
|
||||
['fi', 'fi', 'flags-fi'],
|
||||
['fj', 'fj', 'flags-fj'],
|
||||
['fk', 'fk', 'flags-fk'],
|
||||
['fm', 'fm', 'flags-fm'],
|
||||
['fo', 'fo', 'flags-fo'],
|
||||
['fr', 'fr', 'flags-fr'],
|
||||
['ga', 'ga', 'flags-ga'],
|
||||
['gb', 'gb', 'flags-gb'],
|
||||
['gd', 'gd', 'flags-gd'],
|
||||
['ge', 'ge', 'flags-ge'],
|
||||
['gf', 'gf', 'flags-gf'],
|
||||
['gg', 'gg', 'flags-gg'],
|
||||
['gh', 'gh', 'flags-gh'],
|
||||
['gi', 'gi', 'flags-gi'],
|
||||
['gl', 'gl', 'flags-gl'],
|
||||
['gm', 'gm', 'flags-gm'],
|
||||
['gn', 'gn', 'flags-gn'],
|
||||
['gp', 'gp', 'flags-gp'],
|
||||
['gq', 'gq', 'flags-gq'],
|
||||
['gr', 'gr', 'flags-gr'],
|
||||
['gs', 'gs', 'flags-gs'],
|
||||
['gt', 'gt', 'flags-gt'],
|
||||
['gu', 'gu', 'flags-gu'],
|
||||
['gw', 'gw', 'flags-gw'],
|
||||
['gy', 'gy', 'flags-gy'],
|
||||
['hk', 'hk', 'flags-hk'],
|
||||
['hm', 'hm', 'flags-hm'],
|
||||
['hn', 'hn', 'flags-hn'],
|
||||
['hr', 'hr', 'flags-hr'],
|
||||
['ht', 'ht', 'flags-ht'],
|
||||
['hu', 'hu', 'flags-hu'],
|
||||
['id', 'id', 'flags-id'],
|
||||
['ie', 'ie', 'flags-ie'],
|
||||
['il', 'il', 'flags-il'],
|
||||
['im', 'im', 'flags-im'],
|
||||
['in', 'in', 'flags-in'],
|
||||
['io', 'io', 'flags-io'],
|
||||
['iq', 'iq', 'flags-iq'],
|
||||
['ir', 'ir', 'flags-ir'],
|
||||
['is', 'is', 'flags-is'],
|
||||
['it', 'it', 'flags-it'],
|
||||
['jm', 'jm', 'flags-jm'],
|
||||
['jo', 'jo', 'flags-jo'],
|
||||
['jp', 'jp', 'flags-jp'],
|
||||
['ke', 'ke', 'flags-ke'],
|
||||
['kg', 'kg', 'flags-kg'],
|
||||
['kh', 'kh', 'flags-kh'],
|
||||
['ki', 'ki', 'flags-ki'],
|
||||
['km', 'km', 'flags-km'],
|
||||
['kn', 'kn', 'flags-kn'],
|
||||
['kp', 'kp', 'flags-kp'],
|
||||
['kr', 'kr', 'flags-kr'],
|
||||
['kw', 'kw', 'flags-kw'],
|
||||
['ky', 'ky', 'flags-ky'],
|
||||
['kz', 'kz', 'flags-kz'],
|
||||
['la', 'la', 'flags-la'],
|
||||
['lb', 'lb', 'flags-lb'],
|
||||
['lc', 'lc', 'flags-lc'],
|
||||
['li', 'li', 'flags-li'],
|
||||
['lk', 'lk', 'flags-lk'],
|
||||
['lr', 'lr', 'flags-lr'],
|
||||
['ls', 'ls', 'flags-ls'],
|
||||
['lt', 'lt', 'flags-lt'],
|
||||
['lu', 'lu', 'flags-lu'],
|
||||
['lv', 'lv', 'flags-lv'],
|
||||
['ly', 'ly', 'flags-ly'],
|
||||
['ma', 'ma', 'flags-ma'],
|
||||
['mc', 'mc', 'flags-mc'],
|
||||
['md', 'md', 'flags-md'],
|
||||
['me', 'me', 'flags-me'],
|
||||
['mf', 'mf', 'flags-mf'],
|
||||
['mg', 'mg', 'flags-mg'],
|
||||
['mh', 'mh', 'flags-mh'],
|
||||
['mi', 'mi', 'flags-mi'],
|
||||
['mk', 'mk', 'flags-mk'],
|
||||
['ml', 'ml', 'flags-ml'],
|
||||
['mm', 'mm', 'flags-mm'],
|
||||
['mn', 'mn', 'flags-mn'],
|
||||
['mo', 'mo', 'flags-mo'],
|
||||
['mp', 'mp', 'flags-mp'],
|
||||
['mq', 'mq', 'flags-mq'],
|
||||
['mr', 'mr', 'flags-mr'],
|
||||
['ms', 'ms', 'flags-ms'],
|
||||
['mt', 'mt', 'flags-mt'],
|
||||
['mu', 'mu', 'flags-mu'],
|
||||
['mv', 'mv', 'flags-mv'],
|
||||
['mw', 'mw', 'flags-mw'],
|
||||
['mx', 'mx', 'flags-mx'],
|
||||
['my', 'my', 'flags-my'],
|
||||
['mz', 'mz', 'flags-mz'],
|
||||
['na', 'na', 'flags-na'],
|
||||
['nc', 'nc', 'flags-nc'],
|
||||
['ne', 'ne', 'flags-ne'],
|
||||
['nf', 'nf', 'flags-nf'],
|
||||
['ng', 'ng', 'flags-ng'],
|
||||
['ni', 'ni', 'flags-ni'],
|
||||
['gb-nir', 'gb-nir', 'flags-gb-nir'],
|
||||
['nl', 'nl', 'flags-nl'],
|
||||
['no', 'no', 'flags-no'],
|
||||
['np', 'np', 'flags-np'],
|
||||
['nr', 'nr', 'flags-nr'],
|
||||
['nu', 'nu', 'flags-nu'],
|
||||
['nz', 'nz', 'flags-nz'],
|
||||
['om', 'om', 'flags-om'],
|
||||
['pa', 'pa', 'flags-pa'],
|
||||
['pe', 'pe', 'flags-pe'],
|
||||
['pf', 'pf', 'flags-pf'],
|
||||
['pg', 'pg', 'flags-pg'],
|
||||
['ph', 'ph', 'flags-ph'],
|
||||
['pk', 'pk', 'flags-pk'],
|
||||
['pl', 'pl', 'flags-pl'],
|
||||
['pm', 'pm', 'flags-pm'],
|
||||
['pn', 'pn', 'flags-pn'],
|
||||
['pr', 'pr', 'flags-pr'],
|
||||
['ps', 'ps', 'flags-ps'],
|
||||
['pt', 'pt', 'flags-pt'],
|
||||
['pw', 'pw', 'flags-pw'],
|
||||
['py', 'py', 'flags-py'],
|
||||
['qa', 'qa', 'flags-qa'],
|
||||
['qc', 'qc', 'flags-qc'],
|
||||
['re', 're', 'flags-re'],
|
||||
['ro', 'ro', 'flags-ro'],
|
||||
['rs', 'rs', 'flags-rs'],
|
||||
['ru', 'ru', 'flags-ru'],
|
||||
['rw', 'rw', 'flags-rw'],
|
||||
['sa', 'sa', 'flags-sa'],
|
||||
['sb', 'sb', 'flags-sb'],
|
||||
['sc', 'sc', 'flags-sc'],
|
||||
['gb-sct', 'gb-sct', 'flags-gb-sct'],
|
||||
['sd', 'sd', 'flags-sd'],
|
||||
['se', 'se', 'flags-se'],
|
||||
['sg', 'sg', 'flags-sg'],
|
||||
['sh', 'sh', 'flags-sh'],
|
||||
['si', 'si', 'flags-si'],
|
||||
['sj', 'sj', 'flags-sj'],
|
||||
['sk', 'sk', 'flags-sk'],
|
||||
['sl', 'sl', 'flags-sl'],
|
||||
['sm', 'sm', 'flags-sm'],
|
||||
['sn', 'sn', 'flags-sn'],
|
||||
['so', 'so', 'flags-so'],
|
||||
['sr', 'sr', 'flags-sr'],
|
||||
['ss', 'ss', 'flags-ss'],
|
||||
['st', 'st', 'flags-st'],
|
||||
['sv', 'sv', 'flags-sv'],
|
||||
['sx', 'sx', 'flags-sx'],
|
||||
['sy', 'sy', 'flags-sy'],
|
||||
['sz', 'sz', 'flags-sz'],
|
||||
['tc', 'tc', 'flags-tc'],
|
||||
['td', 'td', 'flags-td'],
|
||||
['tf', 'tf', 'flags-tf'],
|
||||
['tg', 'tg', 'flags-tg'],
|
||||
['th', 'th', 'flags-th'],
|
||||
['tj', 'tj', 'flags-tj'],
|
||||
['tk', 'tk', 'flags-tk'],
|
||||
['tl', 'tl', 'flags-tl'],
|
||||
['tm', 'tm', 'flags-tm'],
|
||||
['tn', 'tn', 'flags-tn'],
|
||||
['to', 'to', 'flags-to'],
|
||||
['tr', 'tr', 'flags-tr'],
|
||||
['tt', 'tt', 'flags-tt'],
|
||||
['tv', 'tv', 'flags-tv'],
|
||||
['tw', 'tw', 'flags-tw'],
|
||||
['tz', 'tz', 'flags-tz'],
|
||||
['ua', 'ua', 'flags-ua'],
|
||||
['ug', 'ug', 'flags-ug'],
|
||||
['um', 'um', 'flags-um'],
|
||||
['us', 'us', 'flags-us'],
|
||||
['uy', 'uy', 'flags-uy'],
|
||||
['uz', 'uz', 'flags-uz'],
|
||||
['va', 'va', 'flags-va'],
|
||||
['vc', 'vc', 'flags-vc'],
|
||||
['ve', 've', 'flags-ve'],
|
||||
['vg', 'vg', 'flags-vg'],
|
||||
['vi', 'vi', 'flags-vi'],
|
||||
['vn', 'vn', 'flags-vn'],
|
||||
['vu', 'vu', 'flags-vu'],
|
||||
['gb-wls', 'gb-wls', 'flags-gb-wls'],
|
||||
['wf', 'wf', 'flags-wf'],
|
||||
['ws', 'ws', 'flags-ws'],
|
||||
['ye', 'ye', 'flags-ye'],
|
||||
['yt', 'yt', 'flags-yt'],
|
||||
['za', 'za', 'flags-za'],
|
||||
['zm', 'zm', 'flags-zm'],
|
||||
['zw', 'zw', 'flags-zw'],
|
||||
],
|
||||
'size' => 1,
|
||||
'minitems' => 0,
|
||||
'maxitems' => 1,
|
||||
'fieldWizard' => [
|
||||
'selectIcons' => [
|
||||
'disabled' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'fallbackType' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbackType',
|
||||
'displayCond' => 'FIELD:languageId:>:0',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['Strict: Show only translated content, based on overlays', 'strict'],
|
||||
['Fallback: Show default language if no translation exists', 'fallback'],
|
||||
['Free mode: Ignore translation and overlay concept, only show data from selected language', 'free'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'fallbacks' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbacks',
|
||||
'displayCond' => 'FIELD:languageId:>:0',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectMultipleSideBySide',
|
||||
'items' => [
|
||||
['Default Language', 0],
|
||||
],
|
||||
'foreign_table' => 'sys_language',
|
||||
'size' => 5,
|
||||
'min' => 0,
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => '--palette--;;default, --palette--;;locale-related, --palette--;;rendering-related, flag, --palette--;;languageIdPalette',
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'default' => [
|
||||
'showitem' => 'title, enabled, --linebreak--, base'
|
||||
],
|
||||
'languageIdPalette' => [
|
||||
'showitem' => 'languageId',
|
||||
'isHiddenPalette' => true,
|
||||
],
|
||||
'locale-related' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.palette.locales',
|
||||
'showitem' => 'typo3Language, locale, iso-639-1'
|
||||
],
|
||||
'rendering-related' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.palette.frontend',
|
||||
'showitem' => 'navigationTitle, hreflang, direction, --linebreak--, fallbackType, --linebreak--, fallbacks'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'label' => 'route',
|
||||
'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getRouteTitle',
|
||||
'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.ctrl.title',
|
||||
'type' => 'type',
|
||||
'typeicon_column' => 'type',
|
||||
'typeicon_classes' => [
|
||||
'staticText' => 'mimetypes-text-html',
|
||||
'uri' => 'apps-pagetree-page-content-from-page',
|
||||
],
|
||||
],
|
||||
'columns' => [
|
||||
'route' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'eval' => 'required, trim',
|
||||
'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.placeholder',
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.route.example1', 'robots.txt'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'type' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.type',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'required' => true,
|
||||
'items' => [
|
||||
['', ''],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText', 'staticText'],
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source', 'uri']
|
||||
],
|
||||
],
|
||||
],
|
||||
'content' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText',
|
||||
'config' => [
|
||||
'type' => 'text',
|
||||
'eval' => 'required',
|
||||
'valuePicker' => [
|
||||
'items' => [
|
||||
['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.staticText.example1', 'User-agent: *
|
||||
Disallow: /typo3/
|
||||
Disallow: /typo3_src/
|
||||
Allow: /typo3/sysext/frontend/Resources/Public/*
|
||||
'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'source' => [
|
||||
'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_route.source',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'renderType' => 'inputLink',
|
||||
'eval' => 'required',
|
||||
'fieldControl' => [
|
||||
'linkPopup' => [
|
||||
'options' => [
|
||||
'blindLinkOptions' => 'mail,spec,folder',
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => 'route, type',
|
||||
],
|
||||
'staticText' => [
|
||||
'showitem' => 'route, type, content',
|
||||
],
|
||||
'uri' => [
|
||||
'showitem' => 'route, type, source',
|
||||
]
|
||||
],
|
||||
];
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
# dummy placeholders for item groups
|
||||
mod.wizards.newContentElement.wizardItems {
|
||||
common.header = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:common
|
||||
menu.header = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:menu
|
||||
special.header = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:special
|
||||
forms.header = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms
|
||||
plugins.header = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:plugins
|
||||
plugins.elements {
|
||||
general {
|
||||
iconIdentifier = content-plugin
|
||||
title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:plugins_general_title
|
||||
description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:plugins_general_description
|
||||
tt_content_defValues.CType = list
|
||||
}
|
||||
}
|
||||
plugins.show = *
|
||||
}
|
||||
Reference in new issue
Block a user