[TYPO3-mvc] Map parameters to Extbase controller action even if record is hidden
Helmut Hummel
helmut.hummel at typo3.org
Thu Dec 11 13:45:11 CET 2014
Hi Jonas!
On 11.12.14 12:58, Jonas Eberle wrote:
> I have an edit-action that should be able to edit hidden records.
> Do you have an idea how I could get property mapping also for deleted
> records?
If you also need hidden records to be mapped directly to your action
method, you currently need to create your own TypeConverter that fetches
such records from persistence.
I would suggest to subclass PersistentObject converter, give your own
TypeConverter a higher priority and override the
fetchObjectFromPersistence[1] method to fit your needs.
Kind regards,
Helmut
[1]https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/extbase/Classes/Property/TypeConverter/PersistentObjectConverter.php#L202
--
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 CMS Active Contributor, TYPO3 Security Team Member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-project-typo3v4mvc
mailing list