in2code-de / femanagerextended

Example extension how to extend femanager for TYPO3
5 stars 4 forks source link

Update for 8.7 and 9.x #9

Closed ingeniumdesign closed 1 year ago

ingeniumdesign commented 6 years ago

Hi, please update the Examples for the new TYPO3 8 and 9

Many Thanks!!!

enem-frir commented 4 years ago

Hello,

an update for TYPO3 10 would be awesome!

For now I get following error after submit the form: Exception while property mapping at property path "": Property "twitterId" was not found in target object of type "In2code\Femanager\Domain\Model\User".

ewokhias commented 4 years ago

Hello,

an update for TYPO3 10 would be awesome!

For now I get following error after submit the form: Exception while property mapping at property path "": Property "twitterId" was not found in target object of type "In2code\Femanager\Domain\Model\User".

I'm experiencing the same issue.

bh-teufels commented 3 years ago

same here how i fixed it: -> Create own Extension from this and https://docs.typo3.org/p/in2code/femanager/6.1/en-us/Features/NewFields/Index.html

  1. Create Configuration/Extbase/Persistence/Classes.php
    
    <?php

declare(strict_types=1);

return [ \MYEXT\MyExtFemanager\Domain\Model\User::class => [ 'tableName' => 'fe_users', 'properties' => [ 'twitterId' => [ 'fieldName' => 'twitter_id' ], 'skypeId' => [ 'fieldName' => 'skype_id' ], ], ], ];


2. Edit ext_localconf.php

<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); }

call_user_func(function () { // Register extended domain class \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class) ->registerImplementation( \In2code\Femanager\Domain\Model\User::class, \MYEXT\MyExtFemanager\Domain\Model\User::class ); });

paddydrums commented 3 years ago

same here how i fixed it: -> Create own Extension from this and https://docs.typo3.org/p/in2code/femanager/6.1/en-us/Features/NewFields/Index.html

  1. Create Configuration/Extbase/Persistence/Classes.php
<?php

declare(strict_types=1);

return [
    \MYEXT\MyExtFemanager\Domain\Model\User::class => [
        'tableName' => 'fe_users',
        'properties' => [
            'twitterId' => [
                'fieldName' => 'twitter_id'
            ],
            'skypeId' => [
                'fieldName' => 'skype_id'
            ],
        ],
    ],
];
  1. Edit ext_localconf.php
<?php
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}

call_user_func(function () {
    // Register extended domain class
    \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
        ->registerImplementation(
            \In2code\Femanager\Domain\Model\User::class,
            \MYEXT\MyExtFemanager\Domain\Model\User::class
        );
});

This did the trick for me, too!

chrissander commented 3 years ago

Another important change for V9 and 10 is that you habe to move the $tmpFeUsersColumns Definition from etx_tables.php to the Configuration/TCA/Overrides/ Folder. Otherwise the new fields are only available while you are logged in as a backend user. This bug is very hard to find, as you test mostly while you are logged in

GhanshyamBhava commented 1 year ago

same here how i fixed it: -> Create own Extension from this and https://docs.typo3.org/p/in2code/femanager/6.1/en-us/Features/NewFields/Index.html

  1. Create Configuration/Extbase/Persistence/Classes.php
<?php

declare(strict_types=1);

return [
    \MYEXT\MyExtFemanager\Domain\Model\User::class => [
        'tableName' => 'fe_users',
        'properties' => [
            'twitterId' => [
                'fieldName' => 'twitter_id'
            ],
            'skypeId' => [
                'fieldName' => 'skype_id'
            ],
        ],
    ],
];
  1. Edit ext_localconf.php
<?php
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}

call_user_func(function () {
    // Register extended domain class
    \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
        ->registerImplementation(
            \In2code\Femanager\Domain\Model\User::class,
            \MYEXT\MyExtFemanager\Domain\Model\User::class
        );
});

This not working for my TYPO3 10.4, femanagaer 6.3.4 and PHP 7.4

sbusemann commented 1 year ago

it is included now for TYPO3 10