[TYPO3-mvc] Extending fe_groups - creating fe_groups in FE?

Jochen Rau jochen.rau at typoplanet.de
Wed Feb 3 12:34:46 CET 2010


Hi David.

On 02.02.10 17:09, David Effendi wrote:
> I extended the fe_groups table - successfully added all fields to TCA
> and can access all fields incl. my extended in the BE & FE. In the
> Frontend I can list all fe_groups which have been created in the Backend.
>
> But I just cannot create a new group in FE. The "new" Form is being
> displayed and I can sned the form - it is even redirected back to the
> index - but no db entry... :(

You have to implement a createAction() method and add it to the allowed 
actions in ext_localconf.php (see below).

> I suppose a fe_group record can be added in FE?
> Or did I miss something here?

Yes ;-)

> I'm also not realy sure about the TS setup. Where do I have to use which
> variant (UpperCamelCase, etc.) ?
>
> My TS setup:
> config.tx_extbase {
> persistence{
> classes {
> Tx_Myext_Domain_Model_Group {
> mapping {
> tableName = fe_groups
> columns {
> tx_myext_pi1_image.mapOnProperty = image
> ...
> }
> }
> }
> }
> }
> }

That's ok (by reading).

> But
> In my ext_localconf.php I have the following:
> Tx_Extbase_Utility_Extension::configurePlugin(
> $_EXTKEY,
> 'Pi1',
> array(
> 'Group' => 'index,new,edit',
> )
> );


Should be something like

Tx_Extbase_Utility_Extension::configurePlugin(
     $_EXTKEY,
     'Pi1',
     array(
         'Group' => 'index,new,crate,edit,update',
     )
);

See the BlogExample for an - ehrm - example.

Jochen


More information about the TYPO3-project-typo3v4mvc mailing list