Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for TYPO3 10? #8

Open
deflektor-de opened this issue May 15, 2021 · 1 comment
Open

Update for TYPO3 10? #8

deflektor-de opened this issue May 15, 2021 · 1 comment

Comments

@deflektor-de
Copy link

Hi there,

although there have been some useful tips under "issues", I'm not able to add some custom fields to powermail anymore. I think there are too many changes with Object Storage and Powermail classes.

It would be really great, if any powermail insider could update the example extension for use with T3 10 or 11.

Thanks anyway, Chris

@hahrens
Copy link

hahrens commented May 23, 2021

Hi Chris,
i've found your question while i'm searching for a solution to the same problem and want to share my solution here :)

You have to do two things.

  1. Add a Configuration\Extbase\Persistence\Classes.php (as described here in the official typo3v10-changelog and here you could find this file for/in the news extension)
  2. Add a mapper-line to your ext_localconf.php (typo3-v9.5-deprecation here)

Configuration/Extbase/Persistence/Classes.php:

<?php
return [
    \In2code\Powermail\Domain\Model\Field::class => [
        'subclasses' => [
            YOUR_MODEL_HERE::class,
        ]
    ],
    YOUR_MODEL_HERE::class => [
        'tableName' => 'tx_powermail_domain_model_field',
    ],
];

ext_localconf.php

\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
              ->registerImplementation(\In2code\Powermail\Domain\Model\Field::class, YOUR_MODEL_HERE::class);

Hope that helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants