first commit

This commit is contained in:
salam committed 2026-10-19 08:18:39 +02:00
commit 1218dd1517
12716 files changed
+989233

No files matched your search

@@ -0,0 +1,22 @@
<?php
namespace TYPO3\CMS\Impexp\Command\Exception;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Import failed
*/
class ImportFailedException extends \RuntimeException
{
}
@@ -0,0 +1,22 @@
<?php
namespace TYPO3\CMS\Impexp\Command\Exception;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* File was not found or could not be opened
*/
class InvalidFileException extends \InvalidArgumentException
{
}
@@ -0,0 +1,22 @@
<?php
namespace TYPO3\CMS\Impexp\Command\Exception;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* File could not be loaded
*/
class LoadingFileFailedException extends \RuntimeException
{
}
@@ -0,0 +1,22 @@
<?php
namespace TYPO3\CMS\Impexp\Command\Exception;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Prerequisites are not met
*/
class PrerequisitesNotMetException extends \RuntimeException
{
}
@@ -0,0 +1,114 @@
<?php
namespace TYPO3\CMS\Impexp\Command;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use TYPO3\CMS\Core\Core\Bootstrap;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Impexp\Import;
/**
* Command for importing T3D/XML data files
*/
class ImportCommand extends Command
{
/**
* Configure the command by defining the name, options and arguments
*/
protected function configure()
{
$this
->setDescription('Imports a T3D / XML file with content into a page tree')
->addArgument(
'file',
InputArgument::REQUIRED,
'The path and filename to import (.t3d or .xml)'
)
->addArgument(
'pageId',
InputArgument::OPTIONAL,
'The page ID to start from. If empty, the root level (= pageId=0) is used.'
)->addOption(
'updateRecords',
null,
InputOption::VALUE_NONE,
'If set, existing records with the same UID will be updated instead of inserted'
)->addOption(
'ignorePid',
null,
InputOption::VALUE_NONE,
'If set, page IDs of updated records are not corrected (only works in conjunction with the updateRecords option)'
)->addOption(
'enableLog',
null,
InputOption::VALUE_NONE,
'If set, all database actions are logged'
);
}
/**
* Executes the command for importing a t3d/xml file into the TYPO3 system
*
* @param InputInterface $input
* @param OutputInterface $output
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$fileName = $input->getArgument('file');
$fileName = GeneralUtility::getFileAbsFileName($fileName);
if (empty($fileName) || !file_exists($fileName)) {
throw new Exception\InvalidFileException('The given filename "' . ($fileName ?? $input->getArgument('file')) . '" could not be found', 1484483040);
}
$io = new SymfonyStyle($input, $output);
// Ensure the _cli_ user is authenticated
Bootstrap::initializeBackendAuthentication();
$pageId = (int)$input->getArgument('pageId');
$import = GeneralUtility::makeInstance(Import::class);
$import->init();
$import->update = (bool)($input->hasOption('updateRecords') && $input->getOption('updateRecords'));
// Only used when $updateRecords is "true"
$import->global_ignore_pid = (bool)($input->hasOption('ignorePid') && $input->getOption('ignorePid'));
// Enables logging of database actions
$import->enableLogging = (bool)($input->hasOption('enableLog') && $input->getOption('enableLog'));
if (!$import->loadFile($fileName, true)) {
$io->error($import->errorLog);
throw new Exception\LoadingFileFailedException('Loading of the import file failed.', 1484484619);
}
$messages = $import->checkImportPrerequisites();
if (!empty($messages)) {
$io->error($messages);
throw new Exception\PrerequisitesNotMetException('Prerequisites for file import are not met.', 1484484612);
}
$import->importData($pageId);
if (!empty($import->errorLog)) {
$io->error($import->errorLog);
throw new Exception\ImportFailedException('The import has failed.', 1484484613);
}
$io->success('Imported ' . $input->getArgument('file') . ' to page ' . $pageId . ' successfully');
}
}
@@ -0,0 +1,124 @@
<?php
declare(strict_types = 1);
namespace TYPO3\CMS\Impexp\ContextMenu;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider;
/**
* Context menu item provider adding export and import items
* @internal this is a internal TYPO3 hook implementation and solely used for EXT:impexp and not part of TYPO3's Core API.
*/
class ItemProvider extends AbstractProvider
{
/**
* @var array
*/
protected $itemsConfiguration = [
'exportT3d' => [
'type' => 'item',
'label' => 'LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:export',
'iconIdentifier' => 'actions-document-export-t3d',
'callbackAction' => 'exportT3d'
],
'importT3d' => [
'type' => 'item',
'label' => 'LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:import',
'iconIdentifier' => 'actions-document-import-t3d',
'callbackAction' => 'importT3d',
]
];
/**
* Export item is added for all database records except files
*
* @return bool
*/
public function canHandle(): bool
{
return !in_array($this->table, ['sys_file', 'sys_filemounts', 'sys_file_storage'], true)
&& strpos($this->table, '-drag') === false;
}
/**
* This needs to be lower than priority of the RecordProvider
*
* @return int
*/
public function getPriority(): int
{
return 50;
}
/**
* Adds import/export items to the "submenu" if available
*
* @param array $items
* @return array
*/
public function addItems(array $items): array
{
$this->initDisabledItems();
$localItems = $this->prepareItems($this->itemsConfiguration);
if (isset($items['more']['childItems'])) {
$items['more']['childItems'] = $items['more']['childItems'] + $localItems;
} else {
$items += $localItems;
}
return $items;
}
/**
* @param string $itemName
* @param string $type
* @return bool
*/
protected function canRender(string $itemName, string $type): bool
{
if (in_array($itemName, $this->disabledItems, true)) {
return false;
}
$canRender = false;
switch ($itemName) {
case 'exportT3d':
$canRender = true;
break;
case 'importT3d':
$canRender = $this->table === 'pages' && $this->isImportEnabled();
break;
}
return $canRender;
}
/**
* Registers custom JS module with item onclick behaviour
*
* @param string $itemName
* @return array
*/
protected function getAdditionalAttributes(string $itemName): array
{
return ['data-callback-module' => 'TYPO3/CMS/Impexp/ContextMenuActions'];
}
/**
* Check if import functionality is available for current user
*/
protected function isImportEnabled(): bool
{
return $this->backendUser->isAdmin()
|| !$this->backendUser->isAdmin() && (bool)($this->backendUser->getTSConfig()['options.']['impexp.']['enableImportForNonAdminUser'] ?? false);
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,230 @@
<?php
namespace TYPO3\CMS\Impexp\Domain\Repository;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Core\Database\Connection;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Messaging\FlashMessage;
use TYPO3\CMS\Core\Messaging\FlashMessageQueue;
use TYPO3\CMS\Core\Messaging\FlashMessageService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* Handling of presets
* @internal this is not part of TYPO3's Core API.
*/
class PresetRepository
{
/**
* @param int $pageId
* @return array
*/
public function getPresets($pageId)
{
$options = [''];
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable('tx_impexp_presets');
$queryBuilder->select('*')
->from('tx_impexp_presets')
->where(
$queryBuilder->expr()->orX(
$queryBuilder->expr()->gt(
'public',
$queryBuilder->createNamedParameter(0, \PDO::PARAM_INT)
),
$queryBuilder->expr()->eq(
'user_uid',
$queryBuilder->createNamedParameter($this->getBackendUser()->user['uid'], \PDO::PARAM_INT)
)
)
);
if ($pageId) {
$queryBuilder->andWhere(
$queryBuilder->expr()->orX(
$queryBuilder->expr()->eq(
'item_uid',
$queryBuilder->createNamedParameter($pageId, \PDO::PARAM_INT)
),
$queryBuilder->expr()->eq(
'item_uid',
$queryBuilder->createNamedParameter(0, \PDO::PARAM_INT)
)
)
);
}
$presets = $queryBuilder->execute();
while ($presetCfg = $presets->fetch()) {
$options[$presetCfg['uid']] = $presetCfg['title'] . ' [' . $presetCfg['uid'] . ']'
. ($presetCfg['public'] ? ' [Public]' : '')
. ($presetCfg['user_uid'] === $this->getBackendUser()->user['uid'] ? ' [Own]' : '');
}
return $options;
}
/**
* Get single preset record
*
* @param int $uid Preset record
* @return array Preset record, if any (otherwise FALSE)
*/
public function getPreset($uid)
{
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable('tx_impexp_presets');
return $queryBuilder->select('*')
->from('tx_impexp_presets')
->where(
$queryBuilder->expr()->eq(
'uid',
$queryBuilder->createNamedParameter($uid, \PDO::PARAM_INT)
)
)
->execute()
->fetch();
}
/**
* Manipulate presets
*
* @param array $inData In data array, passed by reference!
*/
public function processPresets(&$inData)
{
$connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('tx_impexp_presets');
$presetData = GeneralUtility::_GP('preset');
$err = false;
$msg = '';
// Save preset
$beUser = $this->getBackendUser();
// cast public checkbox to int, since this is an int field and NULL is not allowed
$inData['preset']['public'] = (int)$inData['preset']['public'];
if (isset($presetData['save'])) {
$preset = $this->getPreset($presetData['select']);
// Update existing
if (is_array($preset)) {
if ($beUser->isAdmin() || $preset['user_uid'] === $beUser->user['uid']) {
$connection->update(
'tx_impexp_presets',
[
'public' => $inData['preset']['public'],
'title' => $inData['preset']['title'],
'item_uid' => $inData['pagetree']['id'],
'preset_data' => serialize($inData)
],
['uid' => (int)$preset['uid']],
['preset_data' => Connection::PARAM_LOB]
);
$msg = 'Preset #' . $preset['uid'] . ' saved!';
} else {
$msg = 'ERROR: The preset was not saved because you were not the owner of it!';
$err = true;
}
} else {
// Insert new:
$connection->insert(
'tx_impexp_presets',
[
'user_uid' => $beUser->user['uid'],
'public' => $inData['preset']['public'],
'title' => $inData['preset']['title'],
'item_uid' => (int)$inData['pagetree']['id'],
'preset_data' => serialize($inData)
],
['preset_data' => Connection::PARAM_LOB]
);
$msg = 'New preset "' . htmlspecialchars($inData['preset']['title']) . '" is created';
}
}
// Delete preset:
if (isset($presetData['delete'])) {
$preset = $this->getPreset($presetData['select']);
if (is_array($preset)) {
// Update existing
if ($beUser->isAdmin() || $preset['user_uid'] === $beUser->user['uid']) {
$connection->delete(
'tx_impexp_presets',
['uid' => (int)$preset['uid']]
);
$msg = 'Preset #' . $preset['uid'] . ' deleted!';
} else {
$msg = 'ERROR: You were not the owner of the preset so you could not delete it.';
$err = true;
}
} else {
$msg = 'ERROR: No preset selected for deletion.';
$err = true;
}
}
// Load preset
if (isset($presetData['load']) || isset($presetData['merge'])) {
$preset = $this->getPreset($presetData['select']);
if (is_array($preset)) {
// Update existing
$inData_temp = unserialize($preset['preset_data'], ['allowed_classes' => false]);
if (is_array($inData_temp)) {
if (isset($presetData['merge'])) {
// Merge records in:
if (is_array($inData_temp['record'])) {
$inData['record'] = array_merge((array)$inData['record'], $inData_temp['record']);
}
// Merge lists in:
if (is_array($inData_temp['list'])) {
$inData['list'] = array_merge((array)$inData['list'], $inData_temp['list']);
}
} else {
$msg = 'Preset #' . $preset['uid'] . ' loaded!';
$inData = $inData_temp;
}
} else {
$msg = 'ERROR: No configuratio data found in preset record!';
$err = true;
}
} else {
$msg = 'ERROR: No preset selected for loading.';
$err = true;
}
}
// Show message:
if ($msg !== '') {
/** @var FlashMessage $flashMessage */
$flashMessage = GeneralUtility::makeInstance(
FlashMessage::class,
'Presets',
$msg,
$err ? FlashMessage::ERROR : FlashMessage::INFO
);
/** @var FlashMessageService $flashMessageService */
$flashMessageService = GeneralUtility::makeInstance(FlashMessageService::class);
/** @var FlashMessageQueue $defaultFlashMessageQueue */
$defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
$defaultFlashMessageQueue->enqueue($flashMessage);
}
}
/**
* @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication
*/
protected function getBackendUser()
{
return $GLOBALS['BE_USER'];
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,47 @@
<?php
namespace TYPO3\CMS\Impexp\Hook;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Backend\Controller\BackendController;
use TYPO3\CMS\Core\Page\PageRenderer;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* This class adds import export related JavaScript to the backend
* @internal this is a internal TYPO3 hook implementation and solely used for EXT:impexp and not part of TYPO3's Core API.
*/
class BackendControllerHook
{
/**
* Adds ImportExport-specific JavaScript
*
* @param array $configuration
* @param BackendController $backendController
*/
public function addJavaScript(array $configuration, BackendController $backendController)
{
/** @var \TYPO3\CMS\Backend\Routing\UriBuilder $uriBuilder */
$uriBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Routing\UriBuilder::class);
$this->getPageRenderer()->addInlineSetting('ImportExport', 'moduleUrl', (string)$uriBuilder->buildUriFromRoute('xMOD_tximpexp'));
}
/**
* @return PageRenderer
*/
protected function getPageRenderer()
{
return GeneralUtility::makeInstance(PageRenderer::class);
}
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,259 @@
<?php
namespace TYPO3\CMS\Impexp\Task;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Messaging\FlashMessage;
use TYPO3\CMS\Core\Messaging\FlashMessageService;
use TYPO3\CMS\Core\Resource\Exception;
use TYPO3\CMS\Core\Type\Bitmask\Permission;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Taskcenter\Controller\TaskModuleController;
use TYPO3\CMS\Taskcenter\TaskInterface;
/**
* This class provides a textarea to save personal notes
* @internal this is a internal TYPO3 Backend implementation and solely used for EXT:impexp and not part of TYPO3's Core API.
*/
class ImportExportTask implements TaskInterface
{
/**
* Back-reference to the calling reports module
*
* @var TaskModuleController $taskObject
*/
protected $taskObject;
/**
* URL to task module
*
* @var string
*/
protected $moduleUrl;
/**
* Constructor
*
* @param TaskModuleController $taskObject
*/
public function __construct(TaskModuleController $taskObject)
{
/** @var \TYPO3\CMS\Backend\Routing\UriBuilder $uriBuilder */
$uriBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Routing\UriBuilder::class);
$this->moduleUrl = (string)$uriBuilder->buildUriFromRoute('user_task');
$this->taskObject = $taskObject;
$this->getLanguageService()->includeLLFile('EXT:impexp/Resources/Private/Language/locallang_csh.xlf');
}
/**
* This method renders the report
*
* @return string The status report as HTML
*/
public function getTask()
{
return $this->main();
}
/**
* Render an optional additional information for the 1st view in taskcenter.
* Empty for this task
*
* @return string Overview as HTML
*/
public function getOverview()
{
return '';
}
/**
* Main Task center module
*
* @return string HTML content.
*/
public function main()
{
$content = '';
$id = (int)GeneralUtility::_GP('display');
/** @var \TYPO3\CMS\Backend\Routing\UriBuilder $uriBuilder */
$uriBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Routing\UriBuilder::class);
// If a preset is found, it is rendered using an iframe
if ($id > 0) {
$url = (string)$uriBuilder->buildUriFromRoute(
'xMOD_tximpexp',
[
'tx_impexp[action]' => 'export',
'preset[load]' => 1,
'preset[select]' => $id,
'returnUrl' => $this->moduleUrl
]
);
\TYPO3\CMS\Core\Utility\HttpUtility::redirect($url);
} else {
// Header
$lang = $this->getLanguageService();
$content .= $this->taskObject->description($lang->getLL('.alttitle'), $lang->getLL('.description'));
$clause = $this->getBackendUser()->getPagePermsClause(Permission::PAGE_SHOW);
$usernames = BackendUtility::getUserNames();
// Create preset links:
$presets = $this->getPresets();
// If any presets found
if (is_array($presets) && !empty($presets)) {
$lines = [];
foreach ($presets as $key => $presetCfg) {
$configuration = unserialize($presetCfg['preset_data'], ['allowed_classes' => false]);
$title = strlen($presetCfg['title']) ? $presetCfg['title'] : '[' . $presetCfg['uid'] . ']';
$icon = 'EXT:impexp/Resources/Public/Images/export.gif';
$description = [];
// Is public?
if ($presetCfg['public']) {
$description[] = $lang->getLL('task.public') . ': ' . $lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:yes');
}
// Owner
$description[] = $lang->getLL('task.owner') . ': '
. (
$presetCfg['user_uid'] === $GLOBALS['BE_USER']->user['uid']
? $lang->getLL('task.own')
: '[' . htmlspecialchars($usernames[$presetCfg['user_uid']]['username']) . ']'
);
// Page & path
if ($configuration['pagetree']['id']) {
$description[] = $lang->getLL('task.page') . ': ' . $configuration['pagetree']['id'];
$description[] = $lang->getLL('task.path') . ': ' . htmlspecialchars(
BackendUtility::getRecordPath($configuration['pagetree']['id'], $clause, 20)
);
} else {
$description[] = $lang->getLL('single-record');
}
// Meta information
if ($configuration['meta']['title'] || $configuration['meta']['description'] || $configuration['meta']['notes']) {
$metaInformation = '';
if ($configuration['meta']['title']) {
$metaInformation .= '<strong>' . htmlspecialchars($configuration['meta']['title']) . '</strong><br />';
}
if ($configuration['meta']['description']) {
$metaInformation .= htmlspecialchars($configuration['meta']['description']);
}
if ($configuration['meta']['notes']) {
$metaInformation .= '<br /><br />
<strong>' . $lang->getLL('notes') . ': </strong>
<em>' . htmlspecialchars($configuration['meta']['notes']) . '</em>';
}
$description[] = '<br />' . $metaInformation;
}
// Collect all preset information
$lines[$key] = [
'uid' => 'impexp' . $key,
'icon' => $icon,
'title' => $title,
'descriptionHtml' => implode('<br />', $description),
'link' => (string)$uriBuilder->buildUriFromRoute('user_task') . '&SET[function]=impexp.TYPO3\\CMS\\Impexp\\Task\\ImportExportTask&display=' . $presetCfg['uid']
];
}
// Render preset list
$content .= $this->taskObject->renderListMenu($lines);
} else {
// No presets found
$flashMessage = GeneralUtility::makeInstance(
FlashMessage::class,
$lang->getLL('no-presets'),
$lang->getLL('.alttitle'),
FlashMessage::NOTICE
);
/** @var \TYPO3\CMS\Core\Messaging\FlashMessageService $flashMessageService */
$flashMessageService = GeneralUtility::makeInstance(FlashMessageService::class);
/** @var \TYPO3\CMS\Core\Messaging\FlashMessageQueue $defaultFlashMessageQueue */
$defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
$defaultFlashMessageQueue->enqueue($flashMessage);
}
}
return $content;
}
/**
* Select presets for this user
*
* @return array|bool Array of preset records
*/
protected function getPresets()
{
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable('tx_impexp_presets');
return $queryBuilder->select('*')
->from('tx_impexp_presets')
->where(
$queryBuilder->expr()->orX(
$queryBuilder->expr()->gt(
'public',
$queryBuilder->createNamedParameter(0, \PDO::PARAM_INT)
),
$queryBuilder->expr()->eq(
'user_uid',
$queryBuilder->createNamedParameter($this->getBackendUser()->user['uid'], \PDO::PARAM_INT)
)
)
)
->orderBy('item_uid', 'DESC')
->addOrderBy('title')
->execute()
->fetchAll();
}
/**
* Returns a \TYPO3\CMS\Core\Resource\Folder object for saving export files
* to the server and is also used for uploading import files.
*
* @throws \InvalidArgumentException
* @return \TYPO3\CMS\Core\Resource\Folder|null
*/
protected function getDefaultImportExportFolder()
{
$defaultImportExportFolder = null;
$defaultTemporaryFolder = $this->getBackendUser()->getDefaultUploadTemporaryFolder();
if ($defaultTemporaryFolder !== null) {
$importExportFolderName = 'importexport';
$createFolder = !$defaultTemporaryFolder->hasFolder($importExportFolderName);
if ($createFolder === true) {
try {
$defaultImportExportFolder = $defaultTemporaryFolder->createFolder($importExportFolderName);
} catch (Exception $folderAccessException) {
}
} else {
$defaultImportExportFolder = $defaultTemporaryFolder->getSubfolder($importExportFolderName);
}
}
return $defaultImportExportFolder;
}
/**
* @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication
*/
protected function getBackendUser()
{
return $GLOBALS['BE_USER'];
}
/**
* @return mixed
*/
protected function getLanguageService()
{
return $GLOBALS['LANG'];
}
}
@@ -0,0 +1,97 @@
<?php
namespace TYPO3\CMS\Impexp\Utility;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
use TYPO3\CMS\Impexp\Import;
/**
* Utility for import / export
* Can be used for API access for simple importing of files
* @internal
*/
class ImportExportUtility
{
/**
* Import a T3D file directly
*
* @param string $file The full absolute path to the file
* @param int $pid The pid under which the t3d file should be imported
* @throws \ErrorException
* @throws \InvalidArgumentException
* @return int
*/
public function importT3DFile($file, $pid)
{
if (!is_string($file)) {
throw new \InvalidArgumentException('Input parameter $file has to be of type string', 1377625645);
}
if (!is_int($pid)) {
throw new \InvalidArgumentException('Input parameter $int has to be of type integer', 1377625646);
}
/** @var Import $import */
$import = GeneralUtility::makeInstance(Import::class);
$import->init();
$this->emitAfterImportExportInitialisationSignal($import);
$importResponse = 0;
if ($file && @is_file($file)) {
if ($import->loadFile($file, 1)) {
// Import to root page:
$import->importData($pid);
// Get id of first created page:
$newPages = $import->import_mapId['pages'];
$importResponse = (int)reset($newPages);
}
}
// Check for errors during the import process:
$errors = $import->printErrorLog();
if ($errors !== '') {
$logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(__CLASS__);
$logger->warning($errors);
if (!$importResponse) {
throw new \ErrorException('No page records imported', 1377625537);
}
}
return $importResponse;
}
/**
* Get the SignalSlot dispatcher
*
* @return Dispatcher
*/
protected function getSignalSlotDispatcher()
{
return GeneralUtility::makeInstance(Dispatcher::class);
}
/**
* Emits a signal after initialization
*
* @param Import $import
* @throws \TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotException
* @throws \TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotReturnException
*/
protected function emitAfterImportExportInitialisationSignal(Import $import)
{
$this->getSignalSlotDispatcher()->dispatch(__CLASS__, 'afterImportExportInitialisation', [$import]);
}
}
@@ -0,0 +1,129 @@
<?php
namespace TYPO3\CMS\Impexp\View;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
use TYPO3\CMS\Backend\Tree\View\BrowseTreeView;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Type\Bitmask\Permission;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* Extension of the page tree class. Used to get the tree of pages to export.
* @internal
*/
class ExportPageTreeView extends BrowseTreeView
{
/**
* Initialization
*/
public function __construct()
{
parent::__construct();
$this->init();
}
/**
* Wrapping title from page tree.
*
* @param string $title Title to wrap
* @param string $row Item record
* @param int $bank Bank pointer (which mount point number)
* @return string Wrapped title
* @internal
*/
public function wrapTitle($title, $row, $bank = 0)
{
return trim($title) === '' ? '<em>[' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.no_title')) . ']</em>' : htmlspecialchars($title);
}
/**
* Wrapping Plus/Minus icon
*
* @param string $icon Icon HTML
* @param mixed $cmd (See parent class)
* @param mixed $bMark (See parent class)
* @param bool $isOpen
* @return string Icon HTML
*/
public function PM_ATagWrap($icon, $cmd, $bMark = '', $isOpen = false)
{
return $icon;
}
/**
* Wrapping Icon
*
* @param string $icon Icon HTML
* @param array $row Record row (page)
* @return string Icon HTML
*/
public function wrapIcon($icon, $row)
{
return $icon;
}
/**
* Tree rendering
*
* @param int $pid PID value
* @param string $clause Additional where clause
* @return array Array of tree elements
*/
public function ext_tree($pid, $clause = '')
{
// Initialize:
$this->init(' AND ' . $this->BE_USER->getPagePermsClause(Permission::PAGE_SHOW) . $clause);
// Get stored tree structure:
$this->stored = unserialize($this->BE_USER->uc['browseTrees']['browsePages'], ['allowed_classes' => false]);
$treeArr = [];
$idx = 0;
// Set first:
$this->bank = $idx;
$isOpen = $this->stored[$idx][$pid] || $this->expandFirst;
// save ids
$curIds = $this->ids;
$this->reset();
$this->ids = $curIds;
if ($pid > 0) {
$rootRec = BackendUtility::getRecordWSOL('pages', $pid);
$iconFactory = GeneralUtility::makeInstance(IconFactory::class);
$firstHtml = $iconFactory->getIconForRecord('pages', $rootRec, Icon::SIZE_SMALL)->render();
} else {
$rootRec = [
'title' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'],
'uid' => 0
];
$firstHtml = $this->getRootIcon($rootRec);
}
$this->tree[] = ['HTML' => $firstHtml, 'row' => $rootRec, 'hasSub' => $isOpen];
if ($isOpen) {
// Set depth:
if ($this->addSelfId) {
$this->ids[] = $pid;
}
$this->getTree($pid, 999, '');
$idH = [];
$idH[$pid]['uid'] = $pid;
if (!empty($this->buffer_idH)) {
$idH[$pid]['subrow'] = $this->buffer_idH;
}
$this->buffer_idH = $idH;
}
// Add tree:
return array_merge($treeArr, $this->tree);
}
}
@@ -0,0 +1,12 @@
<?php
/**
* Definitions for routes provided by EXT:impexp
*/
return [
// Register click menu entry point
'xMOD_tximpexp' => [
'path' => '/record/importexport/',
'target' => \TYPO3\CMS\Impexp\Controller\ImportExportController::class . '::mainAction'
]
];
@@ -0,0 +1,12 @@
<?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.
*/
return [
'impexp:import' => [
'class' => \TYPO3\CMS\Impexp\Command\ImportCommand::class
]
];
@@ -0,0 +1,12 @@
<?php
defined('TYPO3_MODE') or die();
$fields = [
'tx_impexp_origuid' => [
'config' => [
'type' => 'passthrough'
]
]
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $fields);
@@ -0,0 +1,12 @@
<?php
defined('TYPO3_MODE') or die();
$fields = [
'tx_impexp_origuid' => [
'config' => [
'type' => 'passthrough'
]
]
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages_language_overlay', $fields);
@@ -0,0 +1,12 @@
<?php
defined('TYPO3_MODE') or die();
$fields = [
'tx_impexp_origuid' => [
'config' => [
'type' => 'passthrough'
]
]
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('sys_template', $fields);
@@ -0,0 +1,12 @@
<?php
defined('TYPO3_MODE') or die();
$fields = [
'tx_impexp_origuid' => [
'config' => [
'type' => 'passthrough'
]
]
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $fields);
+345
View File
@@ -0,0 +1,345 @@
Some icons used in the TYPO3 project are retrieved from the "Silk" icon set of
Mark James, which can be found at http://famfamfam.com/lab/icons/silk/. This
set is distributed under a Creative Commons Attribution 2.5 License. The
license can be found at http://creativecommons.org/licenses/by/2.5/.
---------------------------------
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
@@ -0,0 +1,428 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
<file t3:id="1415814828" source-language="en" datatype="plaintext" original="EXT:impexp/Resources/Private/Language/locallang.xlf" date="2011-10-17T20:22:33Z" product-name="impexp">
<header/>
<body>
<trans-unit id="import" resname="import">
<source>Import</source>
</trans-unit>
<trans-unit id="export" resname="export">
<source>Export</source>
</trans-unit>
<trans-unit id="title" resname="title">
<source>Import / Export</source>
</trans-unit>
<trans-unit id="title_import" resname="title_import">
<source>Import</source>
</trans-unit>
<trans-unit id="title_export" resname="title_export">
<source>Export</source>
</trans-unit>
<trans-unit id="tableselec_configuration" resname="tableselec_configuration">
<source>Configuration</source>
</trans-unit>
<trans-unit id="exportdata_savedFile" resname="exportdata_savedFile">
<source>SAVED FILE</source>
</trans-unit>
<trans-unit id="exportdata_savedInSBytes" resname="exportdata_savedInSBytes">
<source>Saved in "%s", bytes %s</source>
</trans-unit>
<trans-unit id="exportdata_problemsSavingFile" resname="exportdata_problemsSavingFile">
<source>Problems saving file</source>
</trans-unit>
<trans-unit id="exportdata_badPathS" resname="exportdata_badPathS">
<source>Bad path: "%s"</source>
</trans-unit>
<trans-unit id="exportdata_filePreset" resname="exportdata_filePreset">
<source>File &amp; Preset</source>
</trans-unit>
<trans-unit id="exportdata_advancedOptions" resname="exportdata_advancedOptions">
<source>Advanced Options</source>
</trans-unit>
<trans-unit id="exportdata_messages" resname="exportdata_messages">
<source>Messages</source>
</trans-unit>
<trans-unit id="execlistqu_structureToBeExported" resname="execlistqu_structureToBeExported">
<source>Structure to be exported</source>
</trans-unit>
<trans-unit id="impexpcore_toggle_all_disabled_records" resname="impexpcore_toggle_all_disabled_records">
<source>Toggle disabled records</source>
</trans-unit>
<trans-unit id="execlistqu_maxNumberLimit" resname="execlistqu_maxNumberLimit">
<source>Max number limit!</source>
</trans-unit>
<trans-unit id="makeconfig_anSqlQueryReturned" resname="makeconfig_anSqlQueryReturned">
<source>An SQL query returned exactly the amount of records specified by the limit value (%s) - that could indicate an incomplete selection of records! Make sure this is on purpose.</source>
</trans-unit>
<trans-unit id="makeconfig_exportPagetreeConfiguration" resname="makeconfig_exportPagetreeConfiguration">
<source>Export pagetree configuration</source>
</trans-unit>
<trans-unit id="makeconfig_pageId" resname="makeconfig_pageId">
<source>Page ID</source>
</trans-unit>
<trans-unit id="makeconfig_tree" resname="makeconfig_tree">
<source>Tree</source>
</trans-unit>
<trans-unit id="makeconfig_noTreeExportedOnly" resname="makeconfig_noTreeExportedOnly">
<source>No tree exported - only tables on the page.</source>
</trans-unit>
<trans-unit id="makeconfig_tablesOnThisPage" resname="makeconfig_tablesOnThisPage">
<source>Tables on this page</source>
</trans-unit>
<trans-unit id="makeconfig_expandedTree" resname="makeconfig_expandedTree">
<source>Expanded tree</source>
</trans-unit>
<trans-unit id="makeconfig_levels" resname="makeconfig_levels">
<source>Levels</source>
</trans-unit>
<trans-unit id="makeconfig_includeTables" resname="makeconfig_includeTables">
<source>Include tables</source>
</trans-unit>
<trans-unit id="makeconfig_exportSingleRecord" resname="makeconfig_exportSingleRecord">
<source>Export single record</source>
</trans-unit>
<trans-unit id="makeconfig_record" resname="makeconfig_record">
<source>Record</source>
</trans-unit>
<trans-unit id="makeconfig_exportTablesFromPages" resname="makeconfig_exportTablesFromPages">
<source>Export tables from pages</source>
</trans-unit>
<trans-unit id="makeconfig_tablePids" resname="makeconfig_tablePids">
<source>Table/Pids</source>
</trans-unit>
<trans-unit id="makeconfig_tableListEntry" resname="makeconfig_tableListEntry">
<source>Table "%s" from %s</source>
</trans-unit>
<trans-unit id="makeconfig_relationsAndExclusions" resname="makeconfig_relationsAndExclusions">
<source>Relations and Exclusions</source>
</trans-unit>
<trans-unit id="makeconfig_includeRelationsToTables" resname="makeconfig_includeRelationsToTables">
<source>Include relations to tables</source>
</trans-unit>
<trans-unit id="makeconfig_useStaticRelationsFor" resname="makeconfig_useStaticRelationsFor">
<source>Use static relations for tables</source>
</trans-unit>
<trans-unit id="makeconfig_showStaticRelations" resname="makeconfig_showStaticRelations">
<source>Show static relations</source>
</trans-unit>
<trans-unit id="makeconfig_excludeElements" resname="makeconfig_excludeElements">
<source>Exclude elements</source>
</trans-unit>
<trans-unit id="makeconfig_clearAllManualExclusions" resname="makeconfig_clearAllManualExclusions">
<source>Clear all manual exclusions</source>
</trans-unit>
<trans-unit id="makeconfig_noManuallyExcludedElementsYet" resname="makeconfig_noManuallyExcludedElementsYet">
<source>No manually excluded elements yet. Exclude by setting checkboxes below in the element display.</source>
</trans-unit>
<trans-unit id="makeconfig_excludeDisabledElements" resname="makeconfig_excludeDisabledElements">
<source>Exclude disabled elements</source>
</trans-unit>
<trans-unit id="makeadvanc_update" resname="makeadvanc_update">
<source>Update</source>
</trans-unit>
<trans-unit id="makeadvanc_softReferences" resname="makeadvanc_softReferences">
<source>Soft References</source>
</trans-unit>
<trans-unit id="makeadvanc_excludeHtmlCssFile" resname="makeadvanc_excludeHtmlCssFile">
<source>Exclude HTML/CSS file resources</source>
</trans-unit>
<trans-unit id="makeadvanc_files" resname="makeadvanc_files">
<source>Files</source>
</trans-unit>
<trans-unit id="makeadvanc_saveFilesOutsideExportFile" resname="makeadvanc_saveFilesOutsideExportFile">
<source>Save files in extra folder beside the export file</source>
</trans-unit>
<trans-unit id="makeadvanc_saveFilesOutsideExportFile_limit" resname="makeadvanc_saveFilesOutsideExportFile_limit">
<source>(supported for "Save to filename" only)</source>
</trans-unit>
<trans-unit id="makeadvanc_extensionDependencies" resname="makeadvanc_extensionDependencies">
<source>Extension dependencies</source>
</trans-unit>
<trans-unit id="makeadvanc_selectExtensionsThatThe" resname="makeadvanc_selectExtensionsThatThe">
<source>Select extensions that the exported content depends on</source>
</trans-unit>
<trans-unit id="makesavefo_update" resname="makesavefo_update">
<source>Update</source>
</trans-unit>
<trans-unit id="makesavefo_presets" resname="makesavefo_presets">
<source>Presets</source>
</trans-unit>
<trans-unit id="makesavefo_selectPreset" resname="makesavefo_selectPreset">
<source>Select preset</source>
</trans-unit>
<trans-unit id="makesavefo_load" resname="makesavefo_load">
<source>Load</source>
</trans-unit>
<trans-unit id="makesavefo_save" resname="makesavefo_save">
<source>Save</source>
</trans-unit>
<trans-unit id="pleaseConfirm" resname="pleaseConfirm">
<source>Please confirm</source>
</trans-unit>
<trans-unit id="makesavefo_areYouSure" resname="makesavefo_areYouSure">
<source>Are you sure?</source>
</trans-unit>
<trans-unit id="makesavefo_delete" resname="makesavefo_delete">
<source>Delete</source>
</trans-unit>
<trans-unit id="makesavefo_merge" resname="makesavefo_merge">
<source>Merge</source>
</trans-unit>
<trans-unit id="makesavefo_titleOfNewPreset" resname="makesavefo_titleOfNewPreset">
<source>Title of new preset</source>
</trans-unit>
<trans-unit id="makesavefo_public" resname="makesavefo_public">
<source>Public</source>
</trans-unit>
<trans-unit id="makesavefo_outputOptions" resname="makesavefo_outputOptions">
<source>Output options</source>
</trans-unit>
<trans-unit id="makesavefo_metaData" resname="makesavefo_metaData">
<source>Meta data</source>
</trans-unit>
<trans-unit id="makesavefo_title" resname="makesavefo_title">
<source>Title</source>
</trans-unit>
<trans-unit id="makesavefo_description" resname="makesavefo_description">
<source>Description</source>
</trans-unit>
<trans-unit id="makesavefo_notes" resname="makesavefo_notes">
<source>Notes</source>
</trans-unit>
<trans-unit id="makesavefo_t3dFileCompressed" resname="makesavefo_t3dFileCompressed">
<source>T3D file / compressed</source>
</trans-unit>
<trans-unit id="makesavefo_t3dFile" resname="makesavefo_t3dFile">
<source>T3D file</source>
</trans-unit>
<trans-unit id="makesavefo_xml" resname="makesavefo_xml">
<source>XML</source>
</trans-unit>
<trans-unit id="makesavefo_fileFormat" resname="makesavefo_fileFormat">
<source>File format</source>
</trans-unit>
<trans-unit id="makesavefo_filenameSavedInS" resname="makesavefo_filenameSavedInS">
<source>Filename (saved in "%s")</source>
</trans-unit>
<trans-unit id="makesavefo_downloadExport" resname="makesavefo_downloadExport">
<source>Download export</source>
</trans-unit>
<trans-unit id="importdata_saveToFilename" resname="importdata_saveToFilename">
<source>Save to filename</source>
</trans-unit>
<trans-unit id="importdata_selectFileToImport" resname="importdata_selectFileToImport">
<source>Select file to import</source>
</trans-unit>
<trans-unit id="importdata_file" resname="importdata_file">
<source>File</source>
</trans-unit>
<trans-unit id="importdata_fromPathS" resname="importdata_fromPathS">
<source>(From path: %s)</source>
</trans-unit>
<trans-unit id="importdata_noteNoDecompressorAvailable" resname="importdata_noteNoDecompressorAvailable">
<source>NOTE: No decompressor available for compressed files!</source>
</trans-unit>
<trans-unit id="importdata_importOptions" resname="importdata_importOptions">
<source>Import Options</source>
</trans-unit>
<trans-unit id="importdata_update" resname="importdata_update">
<source>Update</source>
</trans-unit>
<trans-unit id="importdata_updateRecords" resname="importdata_updateRecords">
<source>Update records</source>
</trans-unit>
<trans-unit id="importdata_thisOptionRequiresThat" resname="importdata_thisOptionRequiresThat">
<source>This option requires that the structure you import already exists on this server and only needs to be updated with new content!</source>
</trans-unit>
<trans-unit id="importdata_ignorePidDifferencesGlobally" resname="importdata_ignorePidDifferencesGlobally">
<source>Ignore PID differences globally</source>
</trans-unit>
<trans-unit id="importdata_ifYouSetThis" resname="importdata_ifYouSetThis">
<source>If you set this option, the position of updated elements will not be updated to match the structure of the input file.</source>
</trans-unit>
<trans-unit id="importdata_force_all_UIDS" resname="importdata_force_all_UIDS">
<source>Force ALL UIDs values</source>
</trans-unit>
<trans-unit id="importdata_force_all_UIDS_descr" resname="importdata_force_all_UIDS_descr">
<source>With this option the original UID value of all imported records are forced to be the same. BE VERY CAREFUL WITH THIS! (Admin Only).</source>
</trans-unit>
<trans-unit id="importdata_options" resname="importdata_options">
<source>Options</source>
</trans-unit>
<trans-unit id="importdata_doNotShowDifferences" resname="importdata_doNotShowDifferences">
<source>Do not show differences in records</source>
</trans-unit>
<trans-unit id="importdata_greenValuesAreFrom" resname="importdata_greenValuesAreFrom">
<source>Green values are from the import file, red values from the current database record and black values are similar in both versions.</source>
</trans-unit>
<trans-unit id="importdata_allowToWriteBanned" resname="importdata_allowToWriteBanned">
<source>Allow to write banned file extensions (eg. PHP scripts), if any</source>
</trans-unit>
<trans-unit id="importdata_action" resname="importdata_action">
<source>Action</source>
</trans-unit>
<trans-unit id="importdata_preview" resname="importdata_preview">
<source>Preview</source>
</trans-unit>
<trans-unit id="importdata_update_299e" resname="importdata_update_299e">
<source>Update</source>
</trans-unit>
<trans-unit id="importdata_import" resname="importdata_import">
<source>Import</source>
</trans-unit>
<trans-unit id="importdata_areYouSure" resname="importdata_areYouSure">
<source>Are you sure?</source>
</trans-unit>
<trans-unit id="importdata_newImport" resname="importdata_newImport">
<source>New import</source>
</trans-unit>
<trans-unit id="importdata_enableLogging" resname="importdata_enableLogging">
<source>Enable logging</source>
</trans-unit>
<trans-unit id="importdata_writeIndividualDbActions" resname="importdata_writeIndividualDbActions">
<source>Write individual DB actions during import to the log</source>
</trans-unit>
<trans-unit id="importdata_thisIsDisabledBy" resname="importdata_thisIsDisabledBy">
<source>This is disabled by default since there may be hundred of entries generated.</source>
</trans-unit>
<trans-unit id="importdata_uploadFileFromLocal" resname="importdata_uploadFileFromLocal">
<source>Upload file from local computer</source>
</trans-unit>
<trans-unit id="importdata_browse" resname="importdata_browse">
<source>Browse</source>
</trans-unit>
<trans-unit id="importdata_uploadStatus" resname="importdata_uploadStatus">
<source>Upload status</source>
</trans-unit>
<trans-unit id="importdata_success" resname="importdata_success">
<source>Success</source>
</trans-unit>
<trans-unit id="importdata_failureNoFileUploaded" resname="importdata_failureNoFileUploaded">
<source>Failure: No file uploaded - was it too big? Check system log.</source>
</trans-unit>
<trans-unit id="importdata_upload" resname="importdata_upload">
<source>Upload</source>
</trans-unit>
<trans-unit id="importdata_upload_error" resname="importdata_upload_error">
<source>Upload error</source>
</trans-unit>
<trans-unit id="importdata_upload_nodata" resname="importdata_upload_nodata">
<source>The import module hasn't received any data. This may occur due to a file upload with a large file. Please check the file size of your uploaded file with the server's post_max_size and upload_max_filesize configuration.</source>
</trans-unit>
<trans-unit id="importdata_metaData" resname="importdata_metaData">
<source>Meta data</source>
</trans-unit>
<trans-unit id="importdata_title" resname="importdata_title">
<source>Title</source>
</trans-unit>
<trans-unit id="importdata_description" resname="importdata_description">
<source>Description</source>
</trans-unit>
<trans-unit id="importdata_notes" resname="importdata_notes">
<source>Notes</source>
</trans-unit>
<trans-unit id="importdata_packager" resname="importdata_packager">
<source>Packager</source>
</trans-unit>
<trans-unit id="importdata_email" resname="importdata_email">
<source>Email</source>
</trans-unit>
<trans-unit id="importdata_icon" resname="importdata_icon">
<source>Icon</source>
</trans-unit>
<trans-unit id="importdata_metaData_1387" resname="importdata_metaData_1387">
<source>Meta data</source>
</trans-unit>
<trans-unit id="importdata_messages" resname="importdata_messages">
<source>Messages</source>
</trans-unit>
<trans-unit id="importdata_structureHasBeenImported" resname="importdata_structureHasBeenImported">
<source>Structure has been imported, here is the result</source>
</trans-unit>
<trans-unit id="importdata_no_accessible_file_mount" resname="importdata_no_accessible_file_mount">
<source>No accessible filemount</source>
</trans-unit>
<trans-unit id="importdata_no_default_upload_folder" resname="importdata_no_default_upload_folder">
<source>No default upload folder</source>
</trans-unit>
<trans-unit id="filterpage_structureToBeImported" resname="filterpage_structureToBeImported">
<source>Structure to be imported</source>
</trans-unit>
<trans-unit id="ALL_tables" resname="ALL_tables">
<source>ALL tables</source>
</trans-unit>
<trans-unit id="impexpcore_displaycon_controls" resname="impexpcore_displaycon_controls">
<source>Controls</source>
</trans-unit>
<trans-unit id="impexpcore_displaycon_title" resname="impexpcore_displaycon_title">
<source>Title</source>
</trans-unit>
<trans-unit id="impexpcore_displaycon_message" resname="impexpcore_displaycon_message">
<source>Message</source>
</trans-unit>
<trans-unit id="impexpcore_displaycon_updateMode" resname="impexpcore_displaycon_updateMode">
<source>Update Mode</source>
</trans-unit>
<trans-unit id="impexpcore_displaycon_currentPath" resname="impexpcore_displaycon_currentPath">
<source>Current Path</source>
</trans-unit>
<trans-unit id="impexpcore_displaycon_result" resname="impexpcore_displaycon_result">
<source>Result</source>
</trans-unit>
<trans-unit id="impexpcore_displaycon_insidePagetree" resname="impexpcore_displaycon_insidePagetree">
<source>Inside pagetree</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_outsidePagetree" resname="impexpcore_singlereco_outsidePagetree">
<source>Outside pagetree</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_softReferencesFiles" resname="impexpcore_singlereco_softReferencesFiles">
<source>Soft References Files</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_update" resname="impexpcore_singlereco_update">
<source>Update</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_insert" resname="impexpcore_singlereco_insert">
<source>Insert</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_importAsNew" resname="impexpcore_singlereco_importAsNew">
<source>Import as new</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_ignorePid" resname="impexpcore_singlereco_ignorePid">
<source>Ignore PID</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_respectPid" resname="impexpcore_singlereco_respectPid">
<source>Respect PID</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_forceUidSAdmin" resname="impexpcore_singlereco_forceUidSAdmin">
<source>Force UID [%s] (Admin)</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_exclude" resname="impexpcore_singlereco_exclude">
<source>Exclude</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_title" resname="impexpcore_singlereco_title">
<source>Title</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_descr" resname="impexpcore_singlereco_descr">
<source>Descr</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_filename" resname="impexpcore_singlereco_filename">
<source>Filename</source>
</trans-unit>
<trans-unit id="impexpcore_singlereco_value" resname="impexpcore_singlereco_value">
<source>Value</source>
</trans-unit>
<trans-unit id="impexpcore_softrefsel_record" resname="impexpcore_softrefsel_record">
<source>Record</source>
</trans-unit>
<trans-unit id="impexpcore_softrefsel_editable" resname="impexpcore_softrefsel_editable">
<source>Editable</source>
</trans-unit>
<trans-unit id="impexpcore_softrefsel_exclude" resname="impexpcore_softrefsel_exclude">
<source>Exclude</source>
</trans-unit>
<trans-unit id="impexpcore_printerror_description" resname="impexpcore_printerror_description">
<source>Description</source>
</trans-unit>
</body>
</file>
</xliff>
@@ -0,0 +1,409 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
<file t3:id="1415814829" source-language="en" datatype="plaintext" original="EXT:impexp/Resources/Private/Language/locallang_csh.xlf" date="2011-10-17T20:22:33Z" product-name="impexp">
<header/>
<body>
<trans-unit id=".alttitle" resname=".alttitle">
<source>Import/Export</source>
</trans-unit>
<trans-unit id=".description" resname=".description">
<source>Native Import/Export module for TYPO3 data. Can export single records, content of tables, single pages or whole branches of the page tree. Includes attached media like image and preserves relations between records. Exports only to TYPO3 specific format, either a binary format (.T3D) or XML. The format is meant for exchange between TYPO3 systems.</source>
</trans-unit>
<trans-unit id="_.image" resname="_.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/impexp.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id=".image_descr" resname=".image_descr">
<source>Example of the preview display during export configuration of a page. Notice how records on the page are include plus how references inside the record is found and included as well (bottom of screen).</source>
</trans-unit>
<trans-unit id="export.alttitle" resname="export.alttitle">
<source>Exporting records from TYPO3</source>
</trans-unit>
<trans-unit id="export.description" resname="export.description">
<source>To export TYPO3 T3D/XML files you click any record icon or page in the page tree (including the root page!), select "More options" and then "Export". This will bring up the export interface where you can configure options for your export session.</source>
</trans-unit>
<trans-unit id="export.details" resname="export.details" xml:space="preserve">
<source>There are a number of methods by which you can export data from TYPO3:
- Export a single page or branch of the page tree (use page icon context menu)
- Export a single record from any page (use record icon context menu)
- Export all records from a specific table on a specific page (using the Web&gt;List module)
- Export an arbitrary selection of records from the clipboard (using the Web&gt;List module)
The export format observes all TYPO3s methods for relations between the records in the export file. But you will have to configure how these relations are maintained, at least to some degree. Sometimes you would want to include records referred to, at other times you surely want to keep the original mapping. That depends on your objectives with the export.
Regardless of your configuration for export you will always see a complete reflection of all chosen records and their internal relations in the preview display found in the bottom of the export module page.
&lt;b&gt;Error messages:&lt;/b&gt; Remember to consult the Message-tab before exporting if there are any error messages there!</source>
</trans-unit>
<trans-unit id="_export.seeAlso" resname="_export.seeAlso">
<source>xMOD_tx_impexp:import</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="_export.image" resname="_export.image" xml:space="preserve">
<source>EXT:impexp/Resources/Public/Images/cshimages/export.png,
EXT:impexp/Resources/Public/Images/cshimages/export1.png,
EXT:impexp/Resources/Public/Images/cshimages/export2.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="export.image_descr" resname="export.image_descr" xml:space="preserve">
<source>To export a page or record, simply click the icon and select "Export" from the context menu.
With the Web&gt;List module you can also export all records from a table by first clicking the table title to see only this table, then next to the CSV export you will find the export button for a T3D export of the table.
You can export the contents of the clipboard as well by simply selecting "Export" in the menu.</source>
</trans-unit>
<trans-unit id="pageTreeCfg.alttitle" resname="pageTreeCfg.alttitle">
<source>Configuration of page tree export</source>
</trans-unit>
<trans-unit id="pageTreeCfg.description" resname="pageTreeCfg.description" xml:space="preserve">
<source>Here you configure how a page or a branch of the page tree should be exported. Using the selector box you can set the number of levels of subpages to include in the export.
By default all records belonging to a page is included when a page is exported.</source>
</trans-unit>
<trans-unit id="_pageTreeCfg.image" resname="_pageTreeCfg.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/pagetreecfg.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="pageTreeDisplay.alttitle" resname="pageTreeDisplay.alttitle">
<source>Page Tree</source>
</trans-unit>
<trans-unit id="pageTreeDisplay.description" resname="pageTreeDisplay.description">
<source>Based on the levels selected for page tree export this will show the structure that is about to be exported. If any pages are specifically excluded by the exclude option they are not shown either.</source>
</trans-unit>
<trans-unit id="pageTreeMode.alttitle" resname="pageTreeMode.alttitle">
<source>Levels</source>
</trans-unit>
<trans-unit id="pageTreeMode.description" resname="pageTreeMode.description">
<source>Here you select how deeply in the page tree from the current starting point to go for this export.</source>
</trans-unit>
<trans-unit id="pageTreeMode.details" resname="pageTreeMode.details">
<source>If you select "Expanded tree" it will base the export on the currently expanded levels of the page tree. Another special option is "Tables on this page" which will not include the page record itself but only include records from tables on the page, depending on the table configuration of course.</source>
</trans-unit>
<trans-unit id="_pageTreeMode.image" resname="_pageTreeMode.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/impexp_misc.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="pageTreeRecordLimit.alttitle" resname="pageTreeRecordLimit.alttitle">
<source>Include tables</source>
</trans-unit>
<trans-unit id="pageTreeRecordLimit.description" resname="pageTreeRecordLimit.description">
<source>When you export a page all records on the page is included by default. By this selector you can pick which tables to include exclusively if there are certain records you are not interested in seeing included.</source>
</trans-unit>
<trans-unit id="pageTreeRecordLimit.details" resname="pageTreeRecordLimit.details">
<source>In the box "Max number of records" you can set a limit to how many records are selected from a single table. This is a runaway brake in case you have an unusual large amount of records from a table.</source>
</trans-unit>
<trans-unit id="singleRecord.alttitle" resname="singleRecord.alttitle">
<source>Export single record</source>
</trans-unit>
<trans-unit id="singleRecord.description" resname="singleRecord.description">
<source>This overview tells you which independent records has been independently selected for export.</source>
</trans-unit>
<trans-unit id="_singleRecord.image" resname="_singleRecord.image" xml:space="preserve">
<source>EXT:impexp/Resources/Public/Images/cshimages/singlerecord.png,
EXT:impexp/Resources/Public/Images/cshimages/export2.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="singleRecord.image_descr" resname="singleRecord.image_descr">
<source>The way to export multiple records like this is using the clipboard like shown below.</source>
</trans-unit>
<trans-unit id="tableList.alttitle" resname="tableList.alttitle">
<source>Table export</source>
</trans-unit>
<trans-unit id="tableList.description" resname="tableList.description">
<source>Export of all records on a page from a specific table. This is configured from the Web&gt;List module where you will have to select table-only view and click a button in the top of the page.</source>
</trans-unit>
<trans-unit id="tableList.details" resname="tableList.details">
<source>Tip: You can select multiple table lists by simply saving each selecting as a preset and finally load/merge the selections together.</source>
</trans-unit>
<trans-unit id="_tableList.image" resname="_tableList.image" xml:space="preserve">
<source>EXT:impexp/Resources/Public/Images/cshimages/tablelist.png,
EXT:impexp/Resources/Public/Images/cshimages/export1.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="tableList.image_descr" resname="tableList.image_descr" xml:space="preserve">
<source>Here two tables from different pages are selected. This is done by first selecting the one, saving it as a preset, then select the other and merge with the saved preset.
Here you see how to use the Web&gt;List module to export all records from a table on a page.</source>
</trans-unit>
<trans-unit id="inclRelations.alttitle" resname="inclRelations.alttitle">
<source>Include relations</source>
</trans-unit>
<trans-unit id="inclRelations.description" resname="inclRelations.description">
<source>Configure the tables from which you want to include records that are found as relations in the main export configuration.</source>
</trans-unit>
<trans-unit id="inclRelations.details" resname="inclRelations.details" xml:space="preserve">
<source>Background: When you export a record in TYPO3 it might contain relations to other records in the system. You have to tell the export interface what to do with these relations. Basically there are three scenarios:
- If relations are found between records that are all in the export configuration, there is no problem: The relations are automatically mapped to the new id's of those records when imported.
- If the records related to are not included the relation will be lost (indicated with an error message in the preview) unless you a) either select that table in this selector box in which case all relations to that table will be included or b) if you set the table as a static table (in which case the relation is untouched and imported as-is - but which will of course break if no record with that UID is found in the import system).
&lt;b&gt;Soft References:&lt;/b&gt; Soft references are when a record contains pointers to external files or records but in fields where there are no formal relation configured. Examples of this is when a content element contains a "&amp;lt;link 123&amp;gt;" tag that represents a link to the page 123. This is not picked up formally as a reference, but is found anyhow as a "soft reference". The same goes for &amp;lt;img&amp;gt; tags with images from eg. "fileadmin/".
By default soft references pointing to records or files will act as normal references; either including the referenced item or showing an error. However you can also choose to exclude the handling of individual soft references or maybe set the value as "editable" upon import. This is done with a selector box in the export preview.</source>
</trans-unit>
<trans-unit id="_inclRelations.image" resname="_inclRelations.image" xml:space="preserve">
<source>EXT:impexp/Resources/Public/Images/cshimages/references.png,
EXT:impexp/Resources/Public/Images/cshimages/references1.png,
EXT:impexp/Resources/Public/Images/cshimages/references2.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="inclRelations.image_descr" resname="inclRelations.image_descr" xml:space="preserve">
<source>This example shows tree examples of references; a) an image attached to a content element, b) a relation to a frontend usergroup UID, and c) a soft reference found in the bodytext field of a record, here it is the link-tag pointing to the page with UID 1.
Notice in the previous image how the relation to the frontend user group was lost. This has been corrected in this screenshot where the fe_group table has been selected in the list of table for which to include relations. The result is that the frontend usergroup is included as a record outside the exported pagetree. If you wanted to keep the relation but not include the usergroup you have to set "fe_groups" as a static table instead. See below.
This example shows a TypoScript Template Record where multiple soft references has been found. The first one is an email address. Here it is configured to be editable. This means that upon import the user will have a chance to edit the value before the import is actually done. This is very useful when exported files are used as templates. Another example includes a PHP script which we don't want to include in the export and therefore we have selected the exclude option for the soft reference.</source>
</trans-unit>
<trans-unit id="staticRelations.alttitle" resname="staticRelations.alttitle">
<source>Set static tables</source>
</trans-unit>
<trans-unit id="staticRelations.description" resname="staticRelations.description">
<source>Select which tables in addition to the static TYPO3 tables to keep relations untouched for. Takes precedence over "Include relations" configured tables.</source>
</trans-unit>
<trans-unit id="staticRelations.details" resname="staticRelations.details">
<source>By default all relations to static tables in TYPO3 are kept untouched. Of course those static tables should be present in the import system in order for this to work correctly. However there might be circumstances where you move information between two systems where theoretically non-static tables should just keep relations untouched. Examples could be "sys_languages" or TemplaVoila data structures / template objects where two systems might contain the same set of records in those tables while you are importing pages and content elements freely.</source>
</trans-unit>
<trans-unit id="_staticRelations.image" resname="_staticRelations.image" xml:space="preserve">
<source>EXT:impexp/Resources/Public/Images/cshimages/static.png,
EXT:impexp/Resources/Public/Images/cshimages/static1.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="staticRelations.image_descr" resname="staticRelations.image_descr" xml:space="preserve">
<source>In this example you see how a number of records are pointing to a System Language record which will become lost relations when imported because the record is not included in the export. However; in the target system the System Languages are exactly the same and therefore you just want a static mapping of the relations.
The static mapping is obtained by selecting the "sys_language" table as a static template meaning that the relations are kept at their current values assuming that they will be exactly the same in the target system when imported.</source>
</trans-unit>
<trans-unit id="excludedElements.alttitle" resname="excludedElements.alttitle">
<source>Excluded elements</source>
</trans-unit>
<trans-unit id="excludedElements.description" resname="excludedElements.description">
<source>By the "Exclude" checkbox you can exclude specific records from the preview display of the export. Which records has been picked for specific exclusion is listed here. You can also clear the exclusion configuration.</source>
</trans-unit>
<trans-unit id="_excludedElements.image" resname="_excludedElements.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/excludebox.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="htmlCssResources.alttitle" resname="htmlCssResources.alttitle">
<source>Exclude resources from HTML and CSS files</source>
</trans-unit>
<trans-unit id="htmlCssResources.description" resname="htmlCssResources.description">
<source>When an HTML or CSS file is found as a soft reference the files are parsed for references to external media (such as images) and if any are found they are also exported. If you don't want this behaviour, click this option.</source>
</trans-unit>
<trans-unit id="htmlCssResources.details" resname="htmlCssResources.details">
<source>Notice: Resources found inside an HTML or CSS file are not analyzed further. For instance it means that any CSS files referred to from within an HTML will not be traversed - but CSS files referred to inside the Setup or Constant field of a TypoScript template record will be!</source>
</trans-unit>
<trans-unit id="_htmlCssResources.image" resname="_htmlCssResources.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/htmlcss.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="htmlCssResources.image_descr" resname="htmlCssResources.image_descr">
<source>In this example you can see that a soft reference has been found pointing to an HTML file inside fileadmin/ Since it was an HTML file it was parsed and further a number of files were found referenced inside it and now included with the export. This feature is specifically created to support export of template configurations where external HTML files play a role.</source>
</trans-unit>
<trans-unit id="extensionDependencies.alttitle" resname="extensionDependencies.alttitle">
<source>Extension Dependencies</source>
</trans-unit>
<trans-unit id="extensionDependencies.description" resname="extensionDependencies.description">
<source>Select which extensions should be installed in the import system in order for your exported content to work correctly. Examples could be "templavoila" for templating, "fluid_styled_content" for the template, "tt_news" for a news archive etc.</source>
</trans-unit>
<trans-unit id="extensionDependencies.details" resname="extensionDependencies.details">
<source>During import warnings will appear for all selected extensions from this list which were not installed.</source>
</trans-unit>
<trans-unit id="_extensionDependencies.image" resname="_extensionDependencies.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/extdep.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="presets.alttitle" resname="presets.alttitle">
<source>Configuration presets</source>
</trans-unit>
<trans-unit id="presets.description" resname="presets.description">
<source>Enables you to save an export configuration for later re-use. Useful if you need to export the same configuration with regular intervals.</source>
</trans-unit>
<trans-unit id="presets.details" resname="presets.details" xml:space="preserve">
<source>In the "Select preset" box you can select any previously saved preset to load. If you are exporting a page the presets listed will be those found for the start page ID. For records, any preset can be loaded.
To load a preset, select it in the selector and press "Load". If you press "Merge" instead the settings from the preset will be merged with the current configuration. This is meaningful in cases where you select multiple individual tables or records.
To save a preset, simply enter a title in the title box and press "Save". This will create a new preset. If you press save while having selected an existing preset you will overwrite it.
To delete old presets, simply select it and press "Delete".
The checkbox "Public" can be set if you want to share your preset with other users of the system. Otherwise they are personal to you.
In the Taskcenter you can see a list of your presets and jump directly to them.</source>
</trans-unit>
<trans-unit id="_presets.image" resname="_presets.image" xml:space="preserve">
<source>EXT:impexp/Resources/Public/Images/cshimages/impexp_misc1.png,
EXT:impexp/Resources/Public/Images/cshimages/impexp_misc2.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="presets.image_descr" resname="presets.image_descr" xml:space="preserve">
<source>The preset selector in the export interface.
Presets from the task center.</source>
</trans-unit>
<trans-unit id="metadata.alttitle" resname="metadata.alttitle">
<source>Meta data setting</source>
</trans-unit>
<trans-unit id="metadata.description" resname="metadata.description">
<source>Set meta data for the export. This is highly encouraged if your exported content goes into eg. a template collection of sorts.</source>
</trans-unit>
<trans-unit id="metadata.details" resname="metadata.details" xml:space="preserve">
<source>The meta data will help users of your exported files to know what they can expect to be inside and what things they should be aware of and take into account during import.
The "Title" and "Description" should contain the basic information about the export.
The "Notes" field can be used for additional details, especially remarks about intensions or requirements that apply.</source>
</trans-unit>
<trans-unit id="_metadata.image" resname="_metadata.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/metadata.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="fileFormat.alttitle" resname="fileFormat.alttitle">
<source>File format options</source>
</trans-unit>
<trans-unit id="fileFormat.description" resname="fileFormat.description">
<source>You can export your records to a generic XML format which potentially can be imported by other applications. However, the schema of the XML is TYPO3 specific. Alternatively, you can select a TYPO3 specific binary format called "T3D".</source>
</trans-unit>
<trans-unit id="fileFormat.details" resname="fileFormat.details" xml:space="preserve">
<source>Generally you should use the XML format. The T3D compressed format is usually smaller, but much harder to read and process.
Entering a file name to save makes it possible to write your export directly to a file (pressing "Save to filename") instead of downloading it (pressing "Download export"). The correct file extensions depending on file format is automatically applied. Files are saved in a proper file mount in "fileadmin/". This is shown to you upon saving. Existing files are overwritten.</source>
</trans-unit>
<trans-unit id="_fileFormat.image" resname="_fileFormat.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/fileformat.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="import.alttitle" resname="import.alttitle">
<source>Importing TYPO3 records</source>
</trans-unit>
<trans-unit id="import.description" resname="import.description">
<source>To import TYPO3 T3D/XML files into the page tree you click any page in the page tree (including the root page!), select "More options" and then "Import". This will bring up the import interface where you can select a file to import or upload a new one.</source>
</trans-unit>
<trans-unit id="import.details" resname="import.details" xml:space="preserve">
<source>&lt;b&gt;Tip: Import into a Folder&lt;/b&gt;
To make sure that no records are lost during the import, you can make yourself safe by importing into a Folder you create first. After the import you can move all records to the final destinations. An example of such a scenario is if you configured the export to include relations; In that case a number of records may follow the export outside the page tree structure you are exporting. To make sure that all of these external records are written to the database, importing into a Folder is a good idea.
&lt;b&gt;Error messages:&lt;/b&gt; Remember to consult the Message-tab before/after importing to see if there are any error messages there!</source>
</trans-unit>
<trans-unit id="_import.seeAlso" resname="_import.seeAlso">
<source>xMOD_tx_impexp:export</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="_import.image" resname="_import.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/import.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="importFile.alttitle" resname="importFile.alttitle">
<source>Select file to import</source>
</trans-unit>
<trans-unit id="importFile.description" resname="importFile.description">
<source>The files displayed are those with an extension T3D or XML from fileadmin/, fileadmin/export/ and your "TEMP" folder (if any).</source>
</trans-unit>
<trans-unit id="_importFile.seeAlso" resname="_importFile.seeAlso">
<source>xMOD_tx_impexp:fileFormat</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="_importFile.image" resname="_importFile.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/import_selectfile.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="update.alttitle" resname="update.alttitle">
<source>Update instead of Insert</source>
</trans-unit>
<trans-unit id="update.description" resname="update.description">
<source>By default the import operation inserts new records in the system. Using this option will update existing records.</source>
</trans-unit>
<trans-unit id="update.details" resname="update.details" xml:space="preserve">
<source>There are certain requirements you have to meet if you want the "Update" process to work. The main thing is that the records updated are those with the SAME uid as the uid in the export file. Thus an update operation only makes real sense if the export and import systems are somehow related and the same UIDs can be expected in both ends. Otherwise it will be a mess!
When you update page structures the import operation will automatically try to rearrange records so they also appear in the same hierarchy and order as in the export file. This can be disabled by checking the option "Ignore PID differences globally". In any case you can set individual records to Ignore/Respect the PID with a selectorbox in the preview.
In the preview display you can also select if individual records should be flatly ignored during import or if you want them created as new records instead of being updates.
As a help for managing updates the preview display will inform you about the path where the existing element with that UID is found. Use this to verify that you get what you expect!
&lt;b&gt;Forcing the UID:&lt;/b&gt;
If you intend to update a system and some elements from the import are not mappable to a UID already (ei. does not exist) you can choose in the preview display to force the UID during creation. This is an unorthodox thing to do since UIDs are normally created automatically by the database. The option makes most sense if you are trying to "synchronize" a copy of another system. The option may mess up certain database internals and the feature is therefore only available for admins.</source>
</trans-unit>
<trans-unit id="_update.image" resname="_update.image" xml:space="preserve">
<source>EXT:impexp/Resources/Public/Images/cshimages/impexp_misc4.png,
EXT:impexp/Resources/Public/Images/cshimages/update.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="update.image_descr" resname="update.image_descr">
<source>In Update mode you can select various settings for each record. You will also be able to see a diff-view where the differences between the existing record and the one from the import is shown.</source>
</trans-unit>
<trans-unit id="options.alttitle" resname="options.alttitle">
<source>Import options</source>
</trans-unit>
<trans-unit id="options.description" resname="options.description">
<source>Various options for import.</source>
</trans-unit>
<trans-unit id="options.details" resname="options.details" xml:space="preserve">
<source>&lt;b&gt;Do not show differences in records&lt;/b&gt;
When a structure has been imported you will see a difference view of all records which tells you whether the written content matched the import data or if not, what changed. In many cases content &lt;i&gt;should&lt;/i&gt; change (eg. relations and file references) so it is not an error if you see red and green values. Basically the difference view is a feature you can use for visual validation of the import success. It brings piece-of-mind to those who is enlightened to understand what it tells... :-)
Green strings represent the actual written data while red represents the original value from the import file and black represents data that is the same.
&lt;b&gt;Allow to write banned file extensions (eg. PHP scripts), if any&lt;/b&gt;
Also an option for admins-only; Allows PHP-files (for example from soft references in TypoScript templates) to be written to the system. This is normally not allowed behavior for security reasons.</source>
</trans-unit>
<trans-unit id="_options.image" resname="_options.image" xml:space="preserve">
<source>EXT:impexp/Resources/Public/Images/cshimages/impexp_misc3.png,
EXT:impexp/Resources/Public/Images/cshimages/phpext.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="options.image_descr" resname="options.image_descr" xml:space="preserve">
<source>Options for import.
Here you are told that this PHP file cannot be allowed - because you didn't select the option "Allow to write banned file extensions (eg. PHP scripts), if any"</source>
</trans-unit>
<trans-unit id="action.alttitle" resname="action.alttitle">
<source>Import Action</source>
</trans-unit>
<trans-unit id="action.description" resname="action.description" xml:space="preserve">
<source>Press "Preview" to see the content of the import file or update the preview display according to changed configurations.
Press "Import"/"Update" if you want to perform the actual import.
Before importing make sure you change any editable soft references that are shown in the preview data.</source>
</trans-unit>
<trans-unit id="_action.image" resname="_action.image">
<source>EXT:impexp/Resources/Public/Images/cshimages/diffview.png</source>
<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
</trans-unit>
<trans-unit id="action.image_descr" resname="action.image_descr">
<source>Example of the result view after importing. As you can see the RTE attached images (soft references) has been written to new file names and the difference view tells you that the names changed in the bodytext content.</source>
</trans-unit>
<trans-unit id="enableLogging.alttitle" resname="enableLogging.alttitle">
<source>Enable System Logging</source>
</trans-unit>
<trans-unit id="enableLogging.description" resname="enableLogging.description">
<source>If you set this the system backend log will be filled with entries for all the actions that the import actually performs. By default this is left out for the sake of clarity.</source>
</trans-unit>
<trans-unit id="upload.alttitle" resname="upload.alttitle">
<source>Upload import file</source>
</trans-unit>
<trans-unit id="upload.description" resname="upload.description">
<source>Select a file to import from your local computer and upload it here. If the upload completes successfully you can immediately see its content displayed in the preview display.</source>
</trans-unit>
<trans-unit id="upload.details" resname="upload.details">
<source>Notice that there are usually limits set by the server (PHP) to the size of uploaded files. If hit, upload fails and an error message is shown.</source>
</trans-unit>
<trans-unit id="task.title" resname="task.title">
<source>Preset title</source>
</trans-unit>
<trans-unit id="task.icon" resname="task.icon">
<source>Icon</source>
</trans-unit>
<trans-unit id="task.public" resname="task.public">
<source>Public</source>
</trans-unit>
<trans-unit id="task.owner" resname="task.owner">
<source>Owner</source>
</trans-unit>
<trans-unit id="task.page" resname="task.page">
<source>Page</source>
</trans-unit>
<trans-unit id="task.path" resname="task.path">
<source>Path</source>
</trans-unit>
<trans-unit id="task.meta" resname="task.meta">
<source>Meta data</source>
</trans-unit>
<trans-unit id="task.own" resname="task.own">
<source>Own</source>
</trans-unit>
<trans-unit id="notes" resname="notes">
<source>Notes</source>
</trans-unit>
<trans-unit id="single-record" resname="single-record">
<source>Single record</source>
</trans-unit>
<trans-unit id="no-presets" resname="no-presets">
<source>No presets found!</source>
</trans-unit>
</body>
</file>
</xliff>
@@ -0,0 +1,8 @@
<form action="{moduleUrl}" method="post" id="ImportExportController" enctype="multipart/form-data" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers">
<f:form.hidden name="id" value="{id}" />
<h3><f:translate key="title_{inData.action}" /></h3>
<f:render section="content" />
</form>
@@ -0,0 +1,98 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:if condition="{import.mode} == 'import'">
<f:then>
<h2>
<f:if condition="{inData.import_file}">
<f:then><f:translate key="importdata_structureHasBeenImported" /></f:then>
<f:else>
<f:if condition="{inData.file}">
<f:translate key="filterpage_structureToBeImported" />
</f:if>
</f:else>
</f:if>
</h2>
</f:then>
<f:else>
<f:if condition="{inData.action} == 'export'">
<h2><f:translate key="execlistqu_structureToBeExported" /></h2>
</f:if>
</f:else>
</f:if>
<div>
<f:if condition="{inData.excludeDisabled}">
<f:else>
<f:if condition="{inData.action} == 'export'">
<f:form.button class="btn btn-default t3js-impexp-toggledisabled" type="button">
<f:translate key="impexpcore_toggle_all_disabled_records" />
</f:form.button>
</f:if>
</f:else>
</f:if>
<f:if condition="{contentOverview.dat.header.pagetree -> f:count()} > 0">
<h3><f:translate key="impexpcore_displaycon_insidePagetree" /></h3>
<table class="table table-striped table-hover t3js-impexp-preview">
<tbody>
<tr>
<th><f:translate key="impexpcore_displaycon_controls" /></th>
<th><f:translate key="impexpcore_displaycon_title" /></th>
<th><f:translate key="impexpcore_displaycon_message" /></th>
<f:if condition="{contentOverview.update}">
<th><f:translate key="impexpcore_displaycon_updateMode" /></th>
<th><f:translate key="impexpcore_displaycon_currentPath" /></th>
</f:if>
<f:if condition="{contentOverview.showDiff}">
<th><f:translate key="impexpcore_displaycon_result" /></th>
</f:if>
</tr>
<f:for each="{contentOverview.pagetreeLines}" as="line">
<tr data-active="{line.active}">
<td><f:format.raw>{line.controls}</f:format.raw></td>
<td class="col-nowrap"><f:format.raw>{line.preCode}{line.title}</f:format.raw></td>
<td class="col-nowrap"><f:format.raw>{line.message}</f:format.raw></td>
<f:if condition="{contentOverview.update}">
<td class="col-nowrap"><f:format.raw>{line.updateMode}</f:format.raw></td>
<td class="col-nowrap"><f:format.raw>{line.updatePath}</f:format.raw></td>
</f:if>
<f:if condition="{contentOverview.showDiff}">
<td><f:format.raw>{line.showDiffContent}</f:format.raw></td>
</f:if>
</tr>
</f:for>
</tbody>
</table>
</f:if>
<f:if condition="{contentOverview.remainingRecords -> f:count()} > 0">
<h3><f:translate key="impexpcore_singlereco_outsidePagetree" /></h3>
<table class="table table-striped table-hover t3js-impexp-preview">
<tbody>
<tr data-active="{line.active}">
<th><f:translate key="impexpcore_displaycon_controls" /></th>
<th><f:translate key="impexpcore_displaycon_title" /></th>
<th><f:translate key="impexpcore_displaycon_message" /></th>
<f:if condition="{contentOverview.update}">
<th><f:translate key="impexpcore_displaycon_updateMode" /></th>
<th><f:translate key="impexpcore_displaycon_currentPath" /></th>
</f:if>
<f:if condition="{contentOverview.showDiff}">
<th><f:translate key="impexpcore_displaycon_result" /></th>
</f:if>
</tr>
<f:for each="{contentOverview.remainingRecords}" as="line">
<tr>
<td><f:format.raw>{line.controls}</f:format.raw></td>
<td class="col-nowrap"><f:format.raw>{line.preCode}{line.title}</f:format.raw></td>
<td class="col-nowrap"><f:format.raw>{line.message}</f:format.raw></td>
<f:if condition="{contentOverview.update}">
<td class="col-nowrap"><f:format.raw>{line.updateMode}</f:format.raw></td>
<td class="col-nowrap"><f:format.raw>{line.updatePath}</f:format.raw></td>
</f:if>
<f:if condition="{contentOverview.showDiff}">
<td><f:format.raw>{line.showDiffContent}</f:format.raw></td>
</f:if>
</tr>
</f:for>
</tbody>
</table>
</f:if>
</div>
</html>
@@ -0,0 +1,30 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<h4><f:translate key="makeadvanc_softReferences" /></h4>
<div class="form-group">
<f:be.buttons.csh table="xMOD_tx_impexp" field="htmlCssResources"><f:translate key="makeadvanc_excludeHtmlCssFile" /></f:be.buttons.csh>
<label for="checkExcludeHTMLfileResources">
<f:form.checkbox name="tx_impexp[excludeHTMLfileResources]" id="checkExcludeHTMLfileResources" value="1" checked="{inData.excludeHTMLfileResources} == 1" />
</label>
</div>
<h4><f:translate key="makeadvanc_files" /></h4>
<div class="form-group">
<label for="saveFilesOutsideExportFile">
<f:form.checkbox name="tx_impexp[saveFilesOutsideExportFile]" id="saveFilesOutsideExportFile" value="1" checked="{inData.saveFilesOutsideExportFile} == 1" />
<f:translate key="makeadvanc_saveFilesOutsideExportFile" />
<f:translate key="makeadvanc_saveFilesOutsideExportFile_limit" />
</label>
</div>
<h4><f:translate key="makeadvanc_extensionDependencies" /></h4>
<div class="form-group">
<label>
<f:be.buttons.csh table="xMOD_tx_impexp" field="extensionDependencies"><f:translate key="makeadvanc_selectExtensionsThatThe" /></f:be.buttons.csh>
</label>
<f:form.select class="form-control" name="tx_impexp[extension_dep]" multiple="multiple"
size="{f:if(condition: '{extensions -> f:count()} > 9', then: '10', else: '5')}"
options="{extensions}" value="{inData.extension_dep}"/>
</div>
<div class="form-group">
<f:form.submit class="btn btn-default" value="{f:translate(key: 'makesavefo_update')}" />
<f:form.hidden name="tx_impexp[download_export_name]" value="{nameSuggestion -> f:format.crop(maxCharacters: 30, append: '')}" />
</div>
</html>
@@ -0,0 +1,139 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<h3>
<f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeCfg"><f:translate key="makeconfig_exportPagetreeConfiguration" /></f:be.buttons.csh>
</h3>
<div class="row">
<div class="col-sm-2">
<label class="control-label"><f:translate key="makeconfig_pageId" /></label>
</div>
<div class="col-sm-10">
{inData.pagetree.id}
<f:form.hidden value="{inData.pagetree.id}" name="tx_impexp[pagetree][id]" />
</div>
</div>
<div class="row">
<div class="col-sm-2">
<label class="control-label">
<f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeDisplay"><f:translate key="makeconfig_tree" /></f:be.buttons.csh>
</label>
</div>
<div class="col-sm-10">
<f:if condition="{treeHTML}">
<f:then><f:format.raw>{treeHTML}</f:format.raw></f:then>
<f:else><f:translate key="makeconfig_noTreeExportedOnly" /></f:else>
</f:if>
</div>
</div>
<div class="form-group">
<label>
<f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeMode"><f:translate key="makeconfig_levels" /></f:be.buttons.csh>
</label>
<f:form.select class="form-control" name="tx_impexp[pagetree][levels]" options="{levelSelectOptions}" value="{inData.pagetree.levels}" />
</div>
<div class="form-group">
<label>
<f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeRecordLimit"><f:translate key="makeconfig_includeTables" /></f:be.buttons.csh>
</label>
<f:form.select class="form-control" name="tx_impexp[pagetree][tables]"
options="{tableSelectOptions}" multiple="multiple" value="{inData.pagetree.tables}"
size="{f:if(condition: '{tableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
</div>
<f:if condition="{records -> f:count()} > 0">
<h4>
<f:be.buttons.csh table="xMOD_tx_impexp" field="singleRecord"><f:translate key="makeconfig_exportSingleRecord" /></f:be.buttons.csh>
</h4>
<div class="row">
<div class="col-sm-2">
<label><f:translate key="makeconfig_record" /></label>
</div>
<div class="col-sm-10">
<f:for each="{records}" as="record">
<f:format.raw>{record.icon}</f:format.raw>
{record.title}
<f:form.hidden name="tx_impexp[record][]" value="{record.tableName}:{record.recordUid}" />
<br />
</f:for>
</div>
</div>
</f:if>
<f:if condition="{tableList -> f:count()} > 0">
<h4><f:translate key="makeconfig_exportTablesFromPages" /></h4>
<div class="row">
<div class="col-sm-2">
<label>
<f:be.buttons.csh table="xMOD_tx_impexp" field="tableList"><f:translate key="makeconfig_tablePids" /></f:be.buttons.csh>
</label>
</div>
<div class="col-sm-10">
<f:for each="{tableList}" as="table">
<f:format.raw>{table.iconAndTitle}</f:format.raw>
<f:form.hidden name="tx_impexp[list][]" value="{table.reference}" />
<br />
</f:for>
</div>
</div>
</f:if>
<h4><f:translate key="makeconfig_relationsAndExclusions" /></h4>
<div class="form-group">
<label>
<f:be.buttons.csh table="xMOD_tx_impexp" field="inclRelations"><f:translate key="makeconfig_includeRelationsToTables" /></f:be.buttons.csh>
</label>
<f:form.select class="form-control" name="tx_impexp[external_ref][tables]"
options="{externalReferenceTableSelectOptions}" multiple="multiple" value="{inData.external_ref.tables}"
size="{f:if(condition: '{externalReferenceTableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
</div>
<div class="form-group">
<label>
<f:be.buttons.csh table="xMOD_tx_impexp" field="staticRelations"><f:translate key="makeconfig_useStaticRelationsFor" /></f:be.buttons.csh>
</label>
<f:form.select class="form-control" name="tx_impexp[external_static][tables]"
options="{externalStaticTableSelectOptions}" multiple="multiple" value="{inData.external_static.tables}"
size="{f:if(condition: '{externalStaticTableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
</div>
<div class="form-group">
<label for="checkShowStaticRelations">
<f:form.checkbox name="tx_impexp[showStaticRelations]" id="checkShowStaticRelations" value="1"
checked="{inData.showStaticRelations} == 1" />
<f:translate key="makeconfig_showStaticRelations" />
</label>
</div>
<div class="form-group">
<label class="control-label">
<f:be.buttons.csh table="xMOD_tx_impexp" field="excludedElements"><f:translate key="makeconfig_excludeElements" /></f:be.buttons.csh>
</label>
<p class="form-control-static">
<f:if condition="{inData.exclude -> f:count()} > 0">
<f:then>
<f:for each="{inData.exclude}" key="key" as="value" iteration="index">
<f:form.hidden name="tx_impexp[exclude][{key}]" value="1" />
<f:if condition="{index.isLast}">
<f:then>{key}</f:then>
<f:else>{key}, </f:else>
</f:if>
</f:for>
<label for="checkExclude">
<input type="checkbox" name="tx_impexp[exclude]" id="checkExclude" value="1" />
<f:translate key="makeconfig_clearAllExclusions" />
</label>
</f:then>
<f:else>
<f:translate key="makeconfig_noManuallyExcludedElementsYet" />
</f:else>
</f:if>
</p>
<p class="form-control-static">
<label for="checkExcludeDisabled">
<f:form.checkbox name="tx_impexp[excludeDisabled]" id="checkExcludeDisabled" value="1" checked="{inData.excludeDisabled}" />
<f:translate key="makeconfig_excludeDisabledElements" />
</label>
</p>
</div>
<div class="form-group">
<f:form.submit class="btn btn-default" value="{f:translate(key: 'makeadvanc_update')}" />
<f:form.hidden
name="tx_impexp[download_export_name]"
value="{nameSuggestion -> f:format.crop(maxCharacters: 30, append: '')}" />
</div>
</html>
@@ -0,0 +1,75 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<h3>
<f:be.buttons.csh table="xMOD_tx_impexp" field="presets"><f:translate key="makesavefo_presets" /></f:be.buttons.csh>
</h3>
<div class="form-group">
<label for="preset-select"><f:translate key="makesavefo_selectPreset" /></label>
<f:form.select class="form-control" id="preset-select" name="preset[select]" options="{presetSelectOptions}" />
</div>
<div class="form-group">
<f:form.hidden name="not-set" value="1" id="t3js-submit-field" />
<f:form.submit class="btn btn-default" value="{f:translate(key: 'makesavefo_load')}" name="preset[load]" />
<f:form.button class="btn btn-default t3js-confirm-trigger"
type="button" name="preset[save]"
data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
<f:translate key="makesavefo_save" />
</f:form.button>
<f:form.button class="btn btn-default t3js-confirm-trigger"
type="button" name="preset[delete]"
data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
<f:translate key="makesavefo_delete" />
</f:form.button>
<f:form.button class="btn btn-default t3js-confirm-trigger"
type="button" name="preset[merge]"
data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
<f:translate key="makesavefo_merge" />
</f:form.button>
</div>
<div class="form-group">
<label for="preset-title"><f:translate key="makesavefo_titleOfNewPreset" /></label>
<f:form.textfield class="form-control" id="preset-title" name="tx_impexp[preset][title]" value="{inData.preset.title}" />
</div>
<div class="form-group">
<label for="checkPresetPublic">
<f:form.checkbox name="tx_impexp[preset][public]" id="checkPresetPublic" value="1"
checked="{inData.preset.public} == 1" />
<f:translate key="makesavefo_public" />
</label>
</div>
<h3><f:translate key="makesavefo_outputOptions" /></h3>
<h4>
<f:be.buttons.csh table="xMOD_tx_impexp" field="metadata"><f:translate key="makesavefo_metaData" /></f:be.buttons.csh>
</h4>
<div class="form-group">
<label for="meta-title"><f:translate key="makesavefo_title" /></label>
<f:form.textfield class="form-control" name="tx_impexp[meta][title]" id="meta-title" value="{inData.meta.title}" />
</div>
<div class="form-group">
<label for="meta-description"><f:translate key="makesavefo_description" /></label>
<f:form.textfield class="form-control" name="tx_impexp[meta][description]" id="meta-description" value="{inData.meta.description}" />
</div>
<div class="form-group">
<label for="meta-notes"><f:translate key="makesavefo_notes" /></label>
<f:form.textarea class="form-control" name="tx_impexp[meta][notes]" id="meta-notes" value="{inData.meta.notes}" />
</div>
<h4>
<f:be.buttons.csh table="xMOD_tx_impexp" field="fileFormat"><f:translate key="makesavefo_fileFormat" /></f:be.buttons.csh>
</h4>
<div class="form-group">
<f:form.select class="form-control" name="tx_impexp[filetype]" options="{filetypeSelectOptions}" value="{inData.filetype}" />
</div>
<div class="form-group">
<label for="impexp-filename"><f:translate key="makesavefo_filenameSavedInS" arguments="{0: saveFolder}" /></label>
<f:form.textfield class="form-control" name="tx_impexp[filename]" id="impexp-filename" value="{inData.filename}" />
</div>
<div class="form-group">
<f:form.submit class="btn btn-default" value="{f:translate(key: 'makesavefo_update')}" /> -
<f:form.submit class="btn btn-default" value="{f:translate(key: 'makesavefo_downloadExport')}" name="tx_impexp[download_export]" />
<f:if condition="{hasSaveFolder}">
- <f:form.submit class="btn btn-default" value="{f:translate(key: 'importdata_saveToFilename')}" name="tx_impexp[save_export]" />
</f:if>
</div>
</html>
@@ -0,0 +1,110 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<h3><f:translate key="importdata_selectFileToImport" /></h3>
<div class="form-group">
<label for="impexp-file">
<f:be.buttons.csh table="xMOD_tx_impexp" field="importFile"><f:translate key="importdata_file" /></f:be.buttons.csh>
</label>
<f:form.select name="tx_impexp[file]" class="form-control" id="impexp-file" value="{inData.file}" options="{fileSelectOptions}" />
<p class="help-block">{importPath}</p>
<f:if condition="{import.compress}">
<f:else><span class="text-danger"><f:translate key="importdata_noteNoDecompressorAvailable" /></span></f:else>
</f:if>
</div>
<h3><f:translate key="importdata_importOptions" /></h3>
<h4>
<f:be.buttons.csh table="xMOD_tx_impexp" field="update"><f:translate key="importdata_update" /></f:be.buttons.csh>
</h4>
<div class="form-group">
<label for="checkDo_update">
<f:form.checkbox name="tx_impexp[do_update]" id="checkDo_update" value="1" checked="{inData.do_update} == 1" />
<f:translate key="importdata_updateRecords" />
</label>
<p class="help-block">(<f:translate key="importdata_thisOptionRequiresThat" />)</p>
</div>
<f:if condition="{inData.do_update}">
<div class="form-group">
<label for="checkGlobal_ignore_pid">
<f:form.checkbox name="tx_impexp[global_ignore_pid]" id="checkGlobal_ignore_pid" value="1" checked="{inData.global_ignore_pid} == 1" />
<f:translate key="importdata_ignorePidDifferencesGlobally" />
</label>
<p class="help-block">(<f:translate key="importdata_ifYouSetThis" />)</p>
</div>
</f:if>
<h4>
<f:be.buttons.csh table="xMOD_tx_impexp" field="options"><f:translate key="importdata_options" /></f:be.buttons.csh>
</h4>
<div class="form-group">
<label for="checkNotShowDiff">
<f:form.checkbox name="tx_impexp[notShowDiff]" id="checkNotShowDiff" value="1" checked="{inData.notShowDiff} == 1" />
<f:translate key="importdata_doNotShowDifferences" />
</label>
<p class="help-block">(<f:translate key="importdata_greenValuesAreFrom" />)</p>
</div>
<f:if condition="{isAdmin}">
<div class="form-group">
<label for="checkAllowPHPScripts">
<f:form.checkbox name="tx_impexp[allowPHPScripts]" id="checkAllowPHPScripts" value="1"
checked="{inData.allowPHPScripts} == 1" />
<f:translate key="importdata_allowToWriteBanned" />
</label>
</div>
<f:if condition="!{inData.do_update}">
<div class="form-group">
<label for="checkForce_all_UIDS">
<f:form.checkbox name="tx_impexp[force_all_UIDS]" id="checkForce_all_UIDS" value="1"
checked="{inData.force_all_UIDS} == 1" />
<span class="text-danger">
<f:translate key="importdata_force_all_UIDS" />
</span>
</label>
<p class="help-block">(<f:translate key="importdata_force_all_UIDS_descr" />)</p>
</div>
</f:if>
</f:if>
<h4>
<f:be.buttons.csh table="xMOD_tx_impexp" field="action"><f:translate key="importdata_action" /></f:be.buttons.csh>
</h4>
<f:if condition="{inData.import_file}">
<f:then>
<f:form.submit class="btn btn-default" name="tx_impexp[new_import]" value="{f:translate(key: 'importdata_newImport')}" />
</f:then>
<f:else>
<f:form.submit class="btn btn-default" value="{f:translate(key: 'importdata_preview')}" />
<f:if condition="{inData.file}">
- <f:form.hidden name="not-set" value="1" id="t3js-submit-field" />
<f:if condition="{inData.do_update}">
<f:then>
<f:form.button class="btn btn-default t3js-confirm-trigger"
type="button" name="tx_impexp[import_file]"
data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
<f:translate key="importdata_update_299e" />
</f:form.button>
</f:then>
<f:else>
<f:form.button class="btn btn-default t3js-confirm-trigger"
type="button" name="tx_impexp[import_file]"
data="{title: '{f:translate(key: \'pleaseConfirm\')}', message: '{f:translate(key: \'makesavefo_areYouSure\')}'}">
<f:translate key="importdata_import" />
</f:form.button>
</f:else>
</f:if>
</f:if>
</f:else>
</f:if>
<f:form.hidden name="tx_impexp[action]" value="import" />
<h4>
<f:be.buttons.csh table="xMOD_tx_impexp" field="enableLogging"><f:translate key="importdata_enableLogging" /></f:be.buttons.csh>
</h4>
<div class="form-group">
<label for="checkEnableLogging">
<f:form.checkbox name="tx_impexp[enableLogging]" id="checkEnableLogging" value="1"
checked="{inData.enableLogging} == 1" />
<f:translate key="importdata_writeIndividualDbActions" />
</label>
<p class="help-block">(<f:translate key="importdata_thisIsDisabledBy" />)</p>
</div>
</html>
@@ -0,0 +1,29 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<h3><f:translate key="importdata_metaData" /></h3>
<div class="table-fit table-fit-wrap">
<table class="table table-striped table-hover">
<tbody>
<tr>
<th class="col-nowrap"><f:translate key="importdata_title" /></th>
<td><f:format.nl2br>{import.dat.header.meta.title}</f:format.nl2br></td>
</tr>
<tr>
<th class="col-nowrap"><f:translate key="importdata_description" /></th>
<td><f:format.nl2br>{import.dat.header.meta.description}</f:format.nl2br></td>
</tr>
<tr>
<th class="col-nowrap"><f:translate key="importdata_notes" /></th>
<td><f:format.nl2br>{import.dat.header.meta.notes}</f:format.nl2br></td>
</tr>
<tr>
<th class="col-nowrap"><f:translate key="importdata_packager" /></th>
<td>
<f:format.nl2br>{import.dat.header.meta.packager_name} ({import.dat.header.meta.packager_username})</f:format.nl2br>
<br/>
<f:translate key="importdata_email" /> {import.dat.header.meta.packager_email}
</td>
</tr>
</tbody>
</table>
</div>
</html>
@@ -0,0 +1,31 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<h3><f:translate key="importdata_uploadFileFromLocal" /></h3>
<h4>
<f:be.buttons.csh table="xMOD_tx_impexp" field="upload"><f:translate key="importdata_browse" /></f:be.buttons.csh>
</h4>
<div class="form-group">
<f:form.upload name="upload_1" />
<f:form.hidden name="file[upload][1][target]" value="{tempFolder}" />
<f:form.hidden name="file[upload][1][data]" value="1" />
</div>
<div class="form-group">
<f:form.submit class="btn btn-default" name="_upload" value="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:file_upload.php.submit')}" />
</div>
<div class="form-group">
<label for="checkOverwriteExistingFiles">
<f:form.checkbox name="overwriteExistingFiles" id="checkOverwriteExistingFiles" value="replace" checked="checked" />
<f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:overwriteExistingFiles" />
</label>
</div>
<f:if condition="{submitted}">
<h4><f:translate key="importdata_uploadStatus" /></h4>
<f:if condition="{noFileUploaded}">
<f:then>
<f:be.infobox title="{f:translate(key: 'importdata_success')} {uploadedFile}" state="0" />
</f:then>
<f:else>
<f:be.infobox title="{f:translate(key: 'importdata_failureNoFileUploaded')}" state="2" />
</f:else>
</f:if>
</f:if>
</html>
@@ -0,0 +1,71 @@
<html xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers">
<f:layout name="Default" />
<f:section name="content">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a class="text-capitalize" href="#export-configuration" aria-controls="export-configuration" role="tab" data-toggle="tab">
<f:translate key="tableselec_configuration" />
</a>
</li>
<li role="presentation">
<a class="text-capitalize" href="#export-filepreset" aria-controls="export-filepreset" role="tab" data-toggle="tab">
<f:translate key="exportdata_filePreset" />
</a>
</li>
<li role="presentation">
<a class="text-capitalize" href="#export-advancedoptions" aria-controls="export-advancedoptions" role="tab" data-toggle="tab">
<f:translate key="exportdata_advancedOptions" />
</a>
</li>
<f:if condition="{errors -> f:count()} > 0">
<li role="presentation">
<a class="text-capitalize" href="#export-errors" aria-controls="export-errors" role="tab" data-toggle="tab">
<f:translate key="exportdata_messages" />
<core:icon identifier="status-dialog-warning" />
</a>
</li>
</f:if>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="export-configuration">
<div class="panel panel-tab">
<div class="panel-body">
<f:render partial="Export/Configuration" arguments="{_all}"/>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="export-filepreset">
<div class="panel panel-tab">
<div class="panel-body">
<f:render partial="Export/Save" arguments="{_all}"/>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="export-advancedoptions">
<div class="panel panel-tab">
<div class="panel-body">
<f:render partial="Export/AdvancedOptions" arguments="{_all}"/>
</div>
</div>
</div>
<f:if condition="{errors -> f:count()} > 0">
<div role="tabpanel" class="tab-pane" id="export-errors">
<div class="panel panel-tab">
<div class="panel-body">
<div class="callout callout-danger">
<f:for each="{errors}" as="error">
<p>{error}</p>
</f:for>
</div>
</div>
</div>
</div>
</f:if>
</div>
<f:form.hidden name="tx_impexp[action]" value="export" />
<f:render partial="ContentOverview" arguments="{_all}"/>
</f:section>
</html>
@@ -0,0 +1,79 @@
<html xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers">
<f:layout name="Default" />
<f:section name="content">
<f:flashMessages queueIdentifier="impexp.errors" />
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a class="text-capitalize" href="#import-import" aria-controls="import-import" role="tab" data-toggle="tab">
<f:translate key="importdata_import" />
</a>
</li>
<f:if condition="{hasTempUploadFolder}">
<li role="presentation">
<a class="text-capitalize" href="#import-upload" aria-controls="import-upload" role="tab" data-toggle="tab">
<f:translate key="importdata_upload" />
</a>
</li>
</f:if>
<f:if condition="{metaDataInFileExists}">
<li role="presentation">
<a class="text-capitalize" href="#import-metadata" aria-controls="import-metadata" role="tab" data-toggle="tab">
<f:translate key="importdata_metaData_1387" />
</a>
</li>
</f:if>
<f:if condition="{errors -> f:count()} > 0">
<li role="presentation">
<a class="text-capitalize" href="#import-errors" aria-controls="import-errors" role="tab" data-toggle="tab">
<f:translate key="importdata_messages" />
<core:icon identifier="status-dialog-warning" />
</a>
</li>
</f:if>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="import-import">
<div class="panel panel-tab">
<div class="panel-body">
<f:render partial="Import/Import" arguments="{_all}"/>
</div>
</div>
</div>
<f:if condition="{hasTempUploadFolder}">
<div role="tabpanel" class="tab-pane" id="import-upload">
<div class="panel panel-tab">
<div class="panel-body">
<f:render partial="Import/Upload" arguments="{_all}"/>
</div>
</div>
</div>
</f:if>
<f:if condition="{metaDataInFileExists}">
<div role="tabpanel" class="tab-pane" id="import-metadata">
<div class="panel panel-tab">
<div class="panel-body">
<f:render partial="Import/MetaData" arguments="{_all}"/>
</div>
</div>
</div>
</f:if>
<f:if condition="{errors -> f:count()} > 0">
<div role="tabpanel" class="tab-pane" id="import-errors">
<div class="panel panel-tab">
<div class="panel-body">
<div class="callout callout-danger">
<f:for each="{errors}" as="error">
<p>{error}</p>
</f:for>
</div>
</div>
</div>
</div>
</f:if>
</div>
<f:render partial="ContentOverview" arguments="{_all}"/>
</f:section>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B

@@ -0,0 +1,56 @@
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Module: TYPO3/CMS/Impexp/ContextMenuActions
*
* JavaScript to handle import/export actions from context menu
* @exports TYPO3/CMS/Impexp/ContextMenuActions
*/
define(function() {
'use strict';
/**
* @exports TYPO3/CMS/Impexp/ContextMenuActions
*/
var ContextMenuActions = {};
ContextMenuActions.exportT3d = function(table, uid) {
if (table === 'pages') {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.ImportExport.moduleUrl +
'&tx_impexp[action]=export&' +
'id=0&tx_impexp[pagetree][id]=' + uid +
'&tx_impexp[pagetree][levels]=0' +
'&tx_impexp[pagetree][tables][]=_ALL'
);
} else {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.ImportExport.moduleUrl +
'&tx_impexp[action]=export' +
'&tx_impexp[record][]=' + table + ':' + uid +
'&tx_impexp[external_ref][tables][]=_ALL'
);
}
};
ContextMenuActions.importT3d = function(table, uid) {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.ImportExport.moduleUrl +
'&id=' + uid +
'&table=' + table + '&tx_impexp[action]=import'
);
};
return ContextMenuActions;
});
@@ -0,0 +1,44 @@
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Module: TYPO3/CMS/Impexp/ImportExport
* JavaScript to handle confirm windows in the Import/Export module
* @exports TYPO3/CMS/Impexp/ImportExport
*/
define(['jquery', 'TYPO3/CMS/Backend/Modal'], function($, Modal) {
'use strict';
$(function() {
$(document).on('click', '.t3js-confirm-trigger', function() {
var $button = $(this);
Modal.confirm($button.data('title'), $button.data('message'))
.on('confirm.button.ok', function() {
$('#t3js-submit-field')
.attr('name', $button.attr('name'))
.closest('form').submit();
Modal.currentModal.trigger('modal-dismiss');
})
.on('confirm.button.cancel', function() {
Modal.currentModal.trigger('modal-dismiss');
});
});
$('.t3js-impexp-toggledisabled').on('click', function() {
var $checkboxes = $('table.t3js-impexp-preview tr[data-active="hidden"] input.t3js-exclude-checkbox');
if ($checkboxes.length) {
$checkboxes.prop('checked', !$checkboxes.get(0).checked);
}
});
});
});
+39
View File
@@ -0,0 +1,39 @@
{
"name": "typo3/cms-impexp",
"type": "typo3-cms-framework",
"description": "Import and Export of records from TYPO3 in a custom serialized format (.T3D) for data exchange with other TYPO3 systems.",
"homepage": "https://typo3.org",
"license": ["GPL-2.0-or-later"],
"authors": [{
"name": "TYPO3 Core Team",
"email": "typo3cms@typo3.org",
"role": "Developer"
}],
"config": {
"sort-packages": true
},
"require": {
"typo3/cms-core": "9.5.31"
},
"conflict": {
"typo3/cms": "*"
},
"extra": {
"typo3/cms": {
"Package": {
"partOfFactoryDefault": true
},
"extension-key": "impexp"
}
},
"autoload": {
"psr-4": {
"TYPO3\\CMS\\Impexp\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TYPO3\\CMS\\Impexp\\Tests\\": "Tests/"
}
}
}
+21
View File
@@ -0,0 +1,21 @@
<?php
$EM_CONF[$_EXTKEY] = [
'title' => 'Import/Export',
'description' => 'Import and Export of records from TYPO3 in a custom serialized format (.T3D) for data exchange with other TYPO3 systems.',
'category' => 'be',
'state' => 'stable',
'uploadfolder' => 0,
'createDirs' => '',
'clearCacheOnLoad' => 0,
'author' => 'TYPO3 Core Team',
'author_email' => 'typo3cms@typo3.org',
'author_company' => '',
'version' => '9.5.31',
'constraints' => [
'depends' => [
'typo3' => '9.5.31',
],
'conflicts' => [],
'suggests' => [],
],
];
+10
View File
@@ -0,0 +1,10 @@
<?php
defined('TYPO3_MODE') or die();
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][] = \TYPO3\CMS\Impexp\Hook\BackendControllerHook::class . '->addJavaScript';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp'][\TYPO3\CMS\Impexp\Task\ImportExportTask::class] = [
'title' => 'LLL:EXT:impexp/Resources/Private/Language/locallang_csh.xlf:.alttitle',
'description' => 'LLL:EXT:impexp/Resources/Private/Language/locallang_csh.xlf:.description',
'icon' => 'EXT:impexp/Resources/Public/Images/export.gif'
];
$GLOBALS['TYPO3_CONF_VARS']['BE']['ContextMenu']['ItemProviders'][1486418735] = \TYPO3\CMS\Impexp\ContextMenu\ItemProvider::class;
+4
View File
@@ -0,0 +1,4 @@
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_tx_impexp', 'EXT:impexp/Resources/Private/Language/locallang_csh.xlf');
+41
View File
@@ -0,0 +1,41 @@
#
# Table structure for table 'tx_impexp_presets'
#
CREATE TABLE tx_impexp_presets (
uid int(11) NOT NULL auto_increment,
user_uid int(11) DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
public tinyint(3) DEFAULT '0' NOT NULL,
item_uid int(11) DEFAULT '0' NOT NULL,
preset_data blob,
PRIMARY KEY (uid),
KEY lookup (item_uid)
);
#
# Table structure for table 'tt_content'
#
CREATE TABLE tt_content (
tx_impexp_origuid int(11) DEFAULT '0' NOT NULL
);
#
# Table structure for table 'pages'
#
CREATE TABLE pages (
tx_impexp_origuid int(11) DEFAULT '0' NOT NULL
);
#
# Table structure for table 'pages_language_overlay'
#
CREATE TABLE pages_language_overlay (
tx_impexp_origuid int(11) DEFAULT '0' NOT NULL
);
#
# Table structure for table 'sys_template'
#
CREATE TABLE sys_template (
tx_impexp_origuid int(11) DEFAULT '0' NOT NULL
);