Remove usage of unsupported extension
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace EP\EpTheme\Userfuncs;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
|
||||
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
||||
|
||||
class Tca
|
||||
{
|
||||
public function getDeeplinkForNews($PA, $fObj)
|
||||
{
|
||||
if (!is_numeric($PA['row']['uid'])) {
|
||||
return 'Wird nach dem Speichern angezeigt.';
|
||||
}
|
||||
$uid = $PA['row']['uid'];
|
||||
$configurationManager = GeneralUtility::makeInstance(ConfigurationManager::class);
|
||||
$configuration = $configurationManager->getConfiguration(
|
||||
ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT
|
||||
);
|
||||
$pageUid = $configuration['plugin.']['tx_eptheme.']['settings.']['blogDetailPageUid'];
|
||||
$parameters = [
|
||||
'tx_news_pi1' => [
|
||||
'news' => $uid,
|
||||
]
|
||||
];
|
||||
|
||||
return \tx_pagepath_api::getPagePath($pageUid, $parameters);
|
||||
}
|
||||
|
||||
public function getDeeplinkForPage($PA, $fObj)
|
||||
{
|
||||
if (!is_numeric($PA['row']['uid'])) {
|
||||
return 'Wird nach dem Speichern angezeigt.';
|
||||
}
|
||||
$pageUid = $PA['row']['uid'];
|
||||
|
||||
return \tx_pagepath_api::getPagePath($pageUid);
|
||||
}
|
||||
|
||||
public function getDeeplinkForStaticSearchparams($PA, $fObj)
|
||||
{
|
||||
if (!is_numeric($PA['row']['uid'])) {
|
||||
return 'Wird nach dem Speichern angezeigt.';
|
||||
}
|
||||
|
||||
return 'https://www.ep-reisen.de/reiseauswahl/' . $PA['row']['path_segment'];
|
||||
}
|
||||
}
|
||||
-30
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
call_user_func(function() {
|
||||
|
||||
$temporaryColumns = [
|
||||
'deeplink' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Deeplink',
|
||||
'config' => [
|
||||
'type' => 'user',
|
||||
'userFunc' => \EP\EpTheme\Userfuncs\Tca::class . '->getDeeplinkForNews',
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
|
||||
'tx_news_domain_model_news',
|
||||
$temporaryColumns
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
|
||||
'tx_news_domain_model_news',
|
||||
'deeplink',
|
||||
'',
|
||||
'before:title'
|
||||
);
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user