Commit ceb9eee7 authored by Christoph Hofmann's avatar Christoph Hofmann

TCA overlays added

parent 0a1013a7
<?php
$tmp_its_realurl_columns = array(
'tx_realurl_pathsegment' => array(
'exclude' => 1,
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment',
'displayCond' => 'FIELD:tx_realurl_exclude:!=:1',
'config' => array (
'type' => 'input',
'max' => 255,
'eval' => 'trim,nospace,lower'
),
),
'tx_realurl_pathoverride' => array(
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_path_override',
'exclude' => 1,
'config' => array (
'type' => 'check',
'items' => array(
array('', '')
)
)
),
'tx_realurl_exclude' => array(
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_exclude',
'exclude' => 1,
'config' => array (
'type' => 'check',
'items' => array(
array('', '')
)
)
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages',$tmp_its_realurl_columns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( 'pages', ', tx_realurl_pathsegment, tx_realurl_pathoverride, tx_realurl_exclude', '1,4', 'after:title' );
<?php
$tmp_its_seo_columns = array(
'tx_realurl_pathsegment' => array(
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment',
'exclude' => 1,
'config' => array (
'type' => 'input',
'max' => 255,
'eval' => 'trim,nospace,lower'
),
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages_language_overlay',$tmp_its_realurl_columns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( 'pages_language_overlay', ', tx_realurl_pathsegment', '1,4', 'after:title' );
?>
\ No newline at end of file
plugin.tx_itsseo_seo {
view {
# cat=plugin.tx_itsseo_seo/file; type=string; label=Path to template root (FE)
templateRootPath = EXT:its_seo/Resources/Private/Templates/
# cat=plugin.tx_itsseo_seo/file; type=string; label=Path to template partials (FE)
partialRootPath = EXT:its_seo/Resources/Private/Partials/
# cat=plugin.tx_itsseo_seo/file; type=string; label=Path to template layouts (FE)
layoutRootPath = EXT:its_seo/Resources/Private/Layouts/
}
persistence {
# cat=plugin.tx_itsseo_seo//a; type=string; label=Default storage PID
storagePid =
}
}
plugin.tx_itsseo_seo {
view {
templateRootPaths.0 = {$plugin.tx_itsseo_seo.view.templateRootPath}
partialRootPaths.0 = {$plugin.tx_itsseo_seo.view.partialRootPath}
layoutRootPaths.0 = {$plugin.tx_itsseo_seo.view.layoutRootPath}
}
persistence {
storagePid = {$plugin.tx_itsseo_seo.persistence.storagePid}
}
}
plugin.tx_itsseo._CSS_DEFAULT_STYLE (
textarea.f3-form-error {
background-color:#FF9F9F;
border: 1px #FF0000 solid;
}
input.f3-form-error {
background-color:#FF9F9F;
border: 1px #FF0000 solid;
}
.tx-its-seo table {
border-collapse:separate;
border-spacing:10px;
}
.tx-its-seo table th {
font-weight:bold;
}
.tx-its-seo table td {
vertical-align:top;
}
.typo3-messages .message-error {
color:red;
}
.typo3-messages .message-ok {
color:green;
}
)
......@@ -30,7 +30,7 @@ $EM_CONF[$_EXTKEY] = array (
'author_company' => 'ITS Hofmann',
'CGLcompliance' => '',
'CGLcompliance_note' => '',
'version' => '2.1.4',
'version' => '2.1.5',
'constraints' => array (
'depends' => array (
'php' => '5.4.2-7.999.999',
......@@ -46,7 +46,7 @@ $EM_CONF[$_EXTKEY] = array (
),
),
'suggests' =>array (),
'comment' => 'TYPO3 7.1. compatibility update',
'comment' => 'realurl Fork',
);
?>
......@@ -2,7 +2,6 @@
if (!defined ('TYPO3_MODE')) die ('Access denied.');
if (TYPO3_MODE=='BE') {
// t3lib_extMgm::addModule('tools','txrealurlM1','',t3lib_extMgm::extPath($_EXTKEY).'mod1/');
// Add Web>Info module:
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
......@@ -15,86 +14,6 @@ if (TYPO3_MODE=='BE') {
);
}
$TCA['pages']['columns'] += array(
'tx_realurl_pathsegment' => array(
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment',
'displayCond' => 'FIELD:tx_realurl_exclude:!=:1',
'exclude' => 1,
'config' => array (
'type' => 'input',
'max' => 255,
'eval' => 'trim,nospace,lower'
),
),
'tx_realurl_pathoverride' => array(
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_path_override',
'exclude' => 1,
'config' => array (
'type' => 'check',
'items' => array(
array('', '')
)
)
),
'tx_realurl_exclude' => array(
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_exclude',
'exclude' => 1,
'config' => array (
'type' => 'check',
'items' => array(
array('', '')
)
)
),
'tx_realurl_nocache' => array(
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_nocache',
'exclude' => 1,
'config' => array (
'type' => 'check',
'items' => array(
array('', ''),
),
),
)
);
$TCA['pages']['ctrl']['requestUpdate'] .= ',tx_realurl_exclude';
$TCA['pages']['palettes']['137'] = array(
'showitem' => 'tx_realurl_pathoverride'
);
if (TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('4.3')) {
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', '3', 'tx_realurl_nocache', 'after:cache_timeout');
}
if (TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('4.2')) {
// For 4.2 or new add fields to advanced page only
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '1', 'after:nav_title');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '4,199,254', 'after:title');
}
else {
// Put it for standard page
TYPO3\CMS\Core\Utility\GeneralUtility::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '2', 'after:nav_title');
TYPO3\CMS\Core\Utility\GeneralUtility::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '1,5,4,199,254', 'after:title');
}
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages','EXT:realurl/locallang_csh.xml');
$TCA['pages_language_overlay']['columns'] += array(
'tx_realurl_pathsegment' => array(
'label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment',
'exclude' => 1,
'config' => array (
'type' => 'input',
'max' => 255,
'eval' => 'trim,nospace,lower'
),
),
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages_language_overlay', 'tx_realurl_pathsegment', '', 'after:nav_title');
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'action-delete',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment