Skip to content

Commit

Permalink
[FEATURE] Auto-registration of NewContentElementWizard via TCA (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf authored Sep 13, 2024
1 parent 4333044 commit c567e2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 48 deletions.
44 changes: 0 additions & 44 deletions Configuration/Sets/BlogExample/page.tsconfig

This file was deleted.

8 changes: 4 additions & 4 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<?php

declare(strict_types=1);

use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;

defined('TYPO3') or die();
Expand All @@ -15,18 +12,21 @@
/**
* Registers a Plugin to be listed in the Backend.
*/
$extensionConfiguration = GeneralUtility::makeInstance(ExtensionConfiguration::class);
ExtensionUtility::registerPlugin(
'blog_example',
'BlogList',
'List of Blogs (BlogExample)',
'blog_example_icon',
'plugins',
'Display a list of blogs',
);
ExtensionUtility::registerPlugin(
'blog_example',
'BlogAdmin',
'Admin Plugin (BlogExample)',
'blog_example_icon',
'plugins',
'Administrate the blog',
);

ExtensionManagementUtility::addToAllTCAtypes(
Expand Down

0 comments on commit c567e2b

Please sign in to comment.