Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Classes/Updates/PluginToContentElementUpdate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

declare(strict_types=1);

/*
* This file is part of the package jweiland/pforum.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/

namespace JWeiland\Pforum\Updates;

use TYPO3\CMS\Install\Attribute\UpgradeWizard;
use TYPO3\CMS\Install\Updates\AbstractListTypeToCTypeUpdate;

/**
* With TYPO3 13 all plugins have to be declared as content elements (CType) insteadof "list_type"
*/
#[UpgradeWizard('pforum_migratePluginsToContentElementsUpdate')]
class PluginToContentElementUpdate extends AbstractListTypeToCTypeUpdate
{
protected function getListTypeToCTypeMapping(): array
{
return [
'pforum_forum' => 'pforum_forum',
];
}

public function getTitle(): string
{
return 'Migrate plugins to Content Elements';
}

public function getDescription(): string
{
return 'The modern way to register plugins for TYPO3 is to register them as content element types. ' .
'Running this wizard will migrate all pforum plugins to content element (CType)';
}
}
5 changes: 5 additions & 0 deletions Documentation/ChangeLog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
ChangeLog
=========

Version 6.1.0
=============

* [TASK] Implemented Upgrade wizard for migrating list_type to custom CType

Version 6.0.2
=============

Expand Down
2 changes: 1 addition & 1 deletion Documentation/guides.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
edit-on-github="jweiland-net/pforum" typo3-core-preferred="stable"/>
<project title="Pforum"
release="6.0"
version="6.0.2"
version="6.1.0"
copyright="by jweiland.net"/>
<inventory id="t3coreapi" url="https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/"/>
<inventory id="t3install" url="https://docs.typo3.org/m/typo3/guide-installation/main/en-us/"/>
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'author_email' => '[email protected]',
'author_company' => 'jweiland.net',
'state' => 'stable',
'version' => '6.0.2',
'version' => '6.1.0',
'constraints' => [
'depends' => [
'typo3' => '13.4.3-13.4.99',
Expand Down