[TYPO3-mvc] Extbase: Edit hidden records in FE

Matthew Colton mat.colton at web-xs.de
Thu May 8 07:58:35 CEST 2014


Hi,
I would like to make it possible for FE users to edit hidden records. To
be precise, FE users should be able to edit event records. Since these
aren't supposed to be published immediately editors (FE users) should
have the opportunity to hide them.

As long as the records are visible everything is fine, they can easily
be saved as hidden records in the edit and update actions.

The hidden records can be listed by using the following in the find
method of the repository:
$query->getQuerySettings()->setIgnoreEnableFields(TRUE);
$query->getQuerySettings()->setEnableFieldsToBeIgnored(array('disabled'));

But there is no explicit call for a repository method in the editAction.
Which repository method is called?

The following exception is thrown when a user calls the editAction:

#1297759968: Exception while property mapping at property path "":Object
with identity "4" not found.

The number "4" is the UID of the record.

So how can I edit a hidden record. Of course I could add a custom
database field for hiding the record, a field Typo3 doesn't use
internally. But I guess that would be rather senseless.

Thanks in advance!

-- 
Cheers
Matthew Colton

*web-xs GbR*
Colton - Gottschling
Dr. Ronge Weg 1
36251 Bad Hersfeld



More information about the TYPO3-project-typo3v4mvc mailing list