Closed jzscheile closed 3 years ago
Hi @jzscheile, thanks for your issue.
Afaik this should have worked out of the box already after including the TypoScript. No special steps needed.
We just came back into office today so we will check what (and if) is the issue here this week and will get back to you soon.
regards, Ramón
Hi @schloram ,
Thanks for you feedback, maybe I've a mistake on my side.
I look forward to your response.
Cu,
Jens
Hi @jzscheile , I cannot reproduce this issue with the following prerequisites:
TYPO3 10.4.12 ext:headless 2.3.0 ext:headless_gridelements 1.0.4 ext:gridelements 10.0.0
Seems like everything works fine without the modifications you provided.
tt_content.gridelements_pi1
TypoScript (from the TypoScript Object Browser prior to your above modifications)?I hope I can assist you so we figure out where the problem is :)
regards, Ramón
Hello @schloram,
thanks for your fast response, will try to answer your questions best as possible.
Did you include the TypoScript that comes with the Extension? Without it it won't work. I'm pretty sure it does not make a difference but in which order do you include the TypoScript of headless, gridelements and headless_gridelements?
Yes, I've added the TS using Template > Includes
Did you apply any other modification to the gridelements or headless TypoScript?
No, I haven't modified the script or add any custom TS
Can you show me an excerpt of the tt_content.gridelements_pi1 TypoScript (from the TypoScript Object Browser prior to your above modifications)?
I hope I can assist you so we figure out where the problem is :)
Thanks for your assistent, attache the JSON output from the FE.
Best, Jens
Hi @jzscheile , thanks for your detailed report.
I see whats the problem here. Our extension obviously only handles and overrides the output with the TypoScript Gridelements (deprecated)
included. 🤦
Don't know why we didn't take the DataHandler variant into account. But since the old way is deprecated and the DataProcessor way is recommended we will probably change our extension to only use the DataHandler variant.
For a quick fix you could include the Gridelements (deprecated)
instead of the Gridelements w/DataProcessing (recommended)
TypoScript. Sounds odd, but right now this is the only way. 😬
In a future version we will change this.
@vjanoch fyi
regards, Ramón
Hi @schloram,
thanks for your feedback, so I'll go with your recommended way.
best, Jens
@jzscheile fyi we are planning to fix this in this or the next week. So the "workaround" doesn't have to be used very long :)
You will hear from us.
Thanks again for pointing it out.
@schloram you're very fast, sounds good thank you.
Good Morning @jzscheile ,
you can now update your extension to v2.0.0. With this version it's not necessary to include the TypoScript of EXT:gridelements
anymore. Including the TypoScript of EXT:headless_gridelements
is enough now.
regards, Ramón
I've setup a fresh Typo3 10.4LTS installation and inserted some content elements in a gridelement, but wasn't rendered and not part of the JSON output.
The gridelement wasn't rendered to expected colPos[x] node, the content elements from the grid was rendered to colPos node and the output was the plain content from data property (data-record) from ContentObjectRenderer.
I've added following lines to Typoscript.
Now the gridelement was part of the JSON output but no nested content elements wasn't outputted.
I've modified Typoscript again:
Added an additional processor called ContentProcessor :
And modified the GridChildrenProcessor:
Then the nested elements was outputted to JSON as well:
Seems not the best solution, but is working for me.
I hope I have not overlooked anything and it is my fault.
Best, Jens