-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backend preview for file fields like image etc. in repeatable content items does not work #439
Comments
Hey @janamedick , this should work. Which version of Mask do you use? |
Hey @nhovratov, thanks for your fast reply. I can reproduce the error with a fresh TYPO3 installation: TYPO3 v10.4.21, Mask v7.0.26. I have created a very reduced example: mask.json:
Backend > Templates > Wrapper.html:
|
Thanks, the example was really helpful! |
InlineHelper->getInlineElements used the field name as the table name for the child relations. This does only work for inline fields, because the field name and table are the same. Instead, the provided child table name must be used. The same goes for the cType. An inline field of type tt_content has probably another cType than the parent. This can be fetched from the data row. Fixes: #439 (cherry picked from commit b8a7ec0)
InlineHelper->getInlineElements used the field name as the table name for the child relations. This does only work for inline fields, because the field name and table are the same. Instead, the provided child table name must be used. The same goes for the cType. An inline field of type tt_content has probably another cType than the parent. This can be fetched from the data row. Fixes: #439 (cherry picked from commit b8a7ec0)
When trying to output a preview view of file fields like media, assets or image in repeatable content items (repetition > content) in the backend, an exception error is displayed ("PHP Warning: count(): Parameter must be an array or an object that implements Countable in..."). I suspect that the relation for the backend preview view is not resolved and instead only the number of stored images/media of the database field is displayed. In repetitions of type "inline" the preview view for file fields works fine.
The text was updated successfully, but these errors were encountered: