Skip to content

Commit

Permalink
Remove content elements
Browse files Browse the repository at this point in the history
  • Loading branch information
d-s-codappix committed Nov 6, 2024
1 parent d323a60 commit 0eedec8
Show file tree
Hide file tree
Showing 44 changed files with 61 additions and 689 deletions.
26 changes: 0 additions & 26 deletions Classes/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public static function getLanguagePath(): string
public static function registerExtLocalconfConfigConfig(): void
{
self::addCaching();
self::addContentElements();
self::addPageTypesExtLocalconf();
}

Expand All @@ -61,31 +60,6 @@ public static function getIconPath(): string
return 'EXT:' . self::EXTENSION_KEY . '/Resources/Public/Icons/';
}

private static function addContentElements(): void
{
$languagePath = self::getLanguagePath() . 'locallang_tca.xlf:tt_content';

// TODO: typo3/cms-core:14.0 Remove this code block as CEs are auto registered.
if (version_compare(GeneralUtility::makeInstance(Typo3Version::class)->__toString(), '13.0', '<')) {
ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.thuecat {
header = ' . $languagePath . '.group
show = *
elements {
thuecat_tourist_attraction{
title = ' . $languagePath . '.thuecat_tourist_attraction
description = ' . $languagePath . '.thuecat_tourist_attraction.description
iconIdentifier = tt_content_thuecat_tourist_attraction
tt_content_defValues {
CType = thuecat_tourist_attraction
}
}
}
}
');
}
}

private static function addPageTypesExtTables(): void
{
$registry = GeneralUtility::makeInstance(PageDoktypeRegistry::class);
Expand Down
5 changes: 0 additions & 5 deletions Configuration/TCA/Overrides/sys_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
defined('TYPO3') or die();

(static function (string $extensionKey, string $tableName) {
ExtensionManagementUtility::addStaticFile(
$extensionKey,
'Configuration/TypoScript/ContentElements',
'ThüCAT - Content Elements'
);
ExtensionManagementUtility::addStaticFile(
$extensionKey,
'Configuration/TypoScript/PageTypes',
Expand Down
23 changes: 0 additions & 23 deletions Configuration/TCA/Overrides/tt_content.php

This file was deleted.

71 changes: 0 additions & 71 deletions Configuration/TCA/Overrides/tt_content_tourist_attraction.php

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion Configuration/TypoScript/ContentElements/setup.typoscript

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
3.1.0
4.0.0
=====

Breaking
--------

Nothing
* Removed content element.

No Content element is provided any longer.
We recommend to build your own tailored content elements instead.

Features
--------
Expand Down
10 changes: 0 additions & 10 deletions Resources/Private/Language/locallang_tca.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,6 @@
<source>Created</source>
</trans-unit>

<trans-unit id="tt_content.group" xml:space="preserve">
<source>ThüCAT</source>
</trans-unit>
<trans-unit id="tt_content.thuecat_tourist_attraction" xml:space="preserve">
<source>Tourist Attraction</source>
</trans-unit>
<trans-unit id="tt_content.thuecat_tourist_attraction.description" xml:space="preserve">
<source>Renders selected tourist attractions</source>
</trans-unit>

<trans-unit id="pages.group" xml:space="preserve">
<source>ThüCAT</source>
</trans-unit>
Expand Down

This file was deleted.

Loading

0 comments on commit 0eedec8

Please sign in to comment.