You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently it is not possible to define fields and dataProcessing because dataProcessing overwrites the whole content.
For example I'd like to define add a flexform to a text field.
This leads to the dataProcessing overwriting the whole content:
"content": {
"additionalData": "data"
}
Are there any reasons not to merge the fields and dataProcessing? Or did I miss something and this is already possible?
In line 131 in FriendsOfTYPO3\Headless\ContentObject\JsonContentObject the fields are always overwritten if dataProcessing exists.
I'd be happy to create a PR if this is something to be considered.
If there would be any side effects, maybe this could be allowed with an flag in the json content object?
Best regards
David
The text was updated successfully, but these errors were encountered:
Hi,
currently it is not possible to define fields and dataProcessing because dataProcessing overwrites the whole content.
For example I'd like to define add a flexform to a text field.
The typoscript looks like this:
and the JSON output:
So I moved the dataProcessing one level up like this so
additionalData
property moves on level up:This leads to the dataProcessing overwriting the whole content:
Are there any reasons not to merge the fields and dataProcessing? Or did I miss something and this is already possible?
In line 131 in
FriendsOfTYPO3\Headless\ContentObject\JsonContentObject
the fields are always overwritten if dataProcessing exists.I'd be happy to create a PR if this is something to be considered.
If there would be any side effects, maybe this could be allowed with an flag in the json content object?
Best regards
David
The text was updated successfully, but these errors were encountered: