Usage¶
Note
Only users with system maintainer rights can use this extension.
Go to the module Admin tools > Grid migration:

What grid elements do i have on my site?¶
Click on click here in the important notice box in the first step. After that the extension analyzes your page and also gives you first instructions.

Migrate grid elements from gridelements layout key¶
Click on Migration form gridelements layout key in the dropdown to migrate all elements on the web page using layout key.

Migrate grid elements with upgrade wizard¶
You can use the new Abstract Upgrater for an automated migration. For this you only have to register your UpgradeWizards in the Services.yaml.
Load the upgrater into your upgrade function as follows:
use SBublies\Gridtocontainer\Upgrades\AbstractGridtoCoUpdater
Add your own upgrater in your own extension as follows:
namespace VENDOR\EXTENSION\Upgrades;
use TYPO3\CMS\Install\Attribute\UpgradeWizard;
use SBublies\Gridtocontainer\Upgrades\AbstractGridtoCoUpdater
#[UpgradeWizard('gridtocontainer_GridelementUpdaterExample')]
class GridelementUpdaterExample extends AbstractGridtoCoUpdater
{
protected const GRID_IDENTIFIER = 'updaterexample';
protected const CONTAINER_IDENTIFIER = 'container_updaterexample';
protected const FLEXFORM_IDENTIFIER = 'old';
protected const OLD_COLUMS = '0,1';
protected const NEW_COLUMS = '10000,10001';
}
Clean up the database¶
Search in the database for content elements that still use the colpos
-1
:
SELECT * FROM tt_content where colpos=-1;
In most cases all content elements that had been deleted in TYPO3 can also be deleted from the database.
Warning
This step cannot be undone! Make a backup first
DELETE FROM tt_content where colpos=-1 and deleted=1;
Then make a database compare at Admin tools > Maintenance > Analyze Database.