Open josefglatz opened 4 years ago
Actually this would be a job for the core, since you run into the same problems if specific values are removed from select boxes with TSconfig after they have been already used in production.
There should be a real warning similar to the language inconsistency messages telling editors, that the original DB value of a field is not available anymore. Currently it is just another or an empty label within the selector and might easily be overlooked.
@IchHabRecht asked me to write down my expectations:
I could imagine a CLI task like contentdefender:check
next to @Bunnyfield 's very good point. This CLI task could check the content of all pagetrees or a particular tree whether all limitations for backend layouts are given. Probably a TYPO3 backend module is also needed to make problematic content elements editable.
Same just happened on some of our TYPO3 11 Sites this week, confusing the editors and us.
What would help a lot would be that the "Switch Form" warning would be displayed if (due to content_defender's restrictions) the supposed CType (not only list_type) could not be respected.
Still keep running into this from time to time, when a field type is missing in the allowed list: editors write into support and ask why their content has disappeared.
Maybe we could sponsor or contribute?
Hi,
I like the idea from @josefglatz to add a check
command. I fear until supported by the core any other unwanted change due to configuration limitations aren't possible currently. At least I don't have any clue what can/needs to be done here for better experience. If a restriction was introduced after content creation what would you expect to happen with the content elements?
Hi!
If a restriction was introduced after content creation what would you expect to happen with the content elements
The current problem is that the element will open with a default type and be saveable as such. And then it will disappear in the frontend. So in my view, the expected behaviour would be:
Upcoming feature hype ^^
It would be great to get 2 or 3 more days to cover stability and more features. I will call out tomorrow on social media. If you would like to support me, please get in contact.
@IchHabRecht I can test this, where can I pull the feature?
Hi @domibwagz,
@IchHabRecht I can test this, where can I pull the feature?
There isn't any branch yet where this can be tested. I'm currently working on some bugfixes beforehand.
Following scenario in a real world project
solr_pi_results
was forgotten to set in the backend layout configuration. (I found that out today)TCEFORM.tt_content.list_type.disableNoMatchingValueElement = 1
then the content element get's updated to an empty list_type without informing the editor.Is there an approach how to intercept such scenarios? Or makes it sense to extend content_defender/core?
Didn't come up with a proper solution