-
Notifications
You must be signed in to change notification settings - Fork 213
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
nesting in flux/fluidcontent not possible when using backend layouts #940
Comments
This occurs in TYPO3 6.2.15. |
Hi Sebastian, This issue is a bit complicated - I'll explain our limitations here and hope maybe you get some idea I haven't come up with ;) it affects everything, not just FluidTYPO3. And it's likely to increase in restriction later, when the backend layout engine of TYPO3 is expanded. Generic problem An additional colPos value must be added dynamically or permanently but must appear regardless of layout configuration. Possible implementations
Evaluation of implementations
Additional problem: any method(s) used would have to scan the existing values in order to not add duplicates. There is no protection against this in TYPO3. Conclusion (so far) It's not a nice feeling but we are extremely confined by the situation and unfortunately it doesn't appear to be an easy fix in any way. We have had discussions internally in the team many times (more than a year ago) and the compromise of adding the value via Fluidpages was the result of those. The best conclusion I've been able to come up with so far, as advise to anyone facing your situation, is to manually add 18181 to the list of column positions in whichever implementation you use. Due to the fact that we cannot provide all implementations without causing even more problems (like spammy duplicates of the column position value). Do you know of any ways we might solve this puzzle? |
Oh forgot to mention there is one thing I considered that I didn't mention above: submitting to the TYPO3 core a patch that changes the behavior of Rather than only consult the |
@mneuhaus Marc, you've got a nice big juicy brain - what does it say about this? :) |
So, i left my box at work and started to think a bit. i might have an idea which could work, but i didn't write any code/prototype so far so this might even be quite a stupid idea: DataProvider itself seems to be the proper way to go, but can only handle a singular source. TYPO3 Core change would be the preferable way to go in the long run, but not doable retroactively to older TYPO3 Versions. I think there is a way in which we could jam the basic approach claus mentioned in #940 (comment) without any TYPO3 Core change and maybe even with clean backwards compatability:
This behavior could even be made into a switch in the extension configuration to only be turned on if needed |
I'm afraid that since last update, Marc and I had a rather long ping-pong about this and tried to cover all the angles - unfortunately even the "proxy" approach won't save us here (even if it would work wonderfully in many other places, so we'll remember it for later). There really is no other way here than either living with this or attempting to drive a (breaking) change into TYPO3 itself. ...which I currently can't promise to do inside a reasonable time frame. If anyone else may be able to help with this then please assist. I can help out with knowledge and can press the +1 button once a fix is submitted to the core! |
https://forge.typo3.org/issues/70560 is the best I can do at this time. |
Using fluidcontent and flux with TYPO3's backend layouts doesn't work for me. Flux adds a new item to tt_content's colPos field
But the TYPO3's BackendLayoutView class discards the colPos items and regenerates the list according to the configured backend layout, so the flux content item is missing and you can't nest content elements in flux elements anymore.
I've done a quick fix for myself by extending the BackendLayoutView class and re-add the item manually after the backend layout items were parsed.
https://gist.github.com/smichaelsen/d0677bb6f1bb0d38db8b
The text was updated successfully, but these errors were encountered: