Closed matthewjumpsoffbuildings closed 2 years ago
The panel names can be translatable, which means that the data structure can change based on what language the user is using.
Yes, and this PR allows users who need to, to continue to use the existing:
Panel::make('Translateable Name', [...])->fieldPrefix('something_else')
which they should be using anyway right?
The only change is if they dont specify ->fieldPrefix()
, it will default to a slug/snake case of the Panel's name, which for many use cases, this is entirely expected and desirable
Nothing is lost, non-English users still have to use ->fieldPrefix()
as they did before, but a new sensible default is added
This would be breaking for all existing nova-page-manager users, who do not use fieldPrefix
and don't want panel data in a nested structure.
Revert to the Nova 3 style behaviour of storing/retrieving Panel data, using sanitized
Str::slug('_')
versions of the Panel name by default, but still allow for setting afieldPrefix
override if neededFixes https://github.com/outl1ne/nova-page-manager/issues/134