-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I'm using the registerStormedModels() method in my plugin to add SEO fields to my models, as described in the SeoStorm documentation. I also use RainLab.Translate for multilingual support.
However, the SEO fields are not becoming translatable in the backend, even when my model implements @RainLab.Translate.Behaviors.TranslatableModel and adds seo_options to the $translatable array.
After some investigation, I found that the problem is that the Initbiz\SeoStorm\Models\SeoOptions model itself does not implement the TranslatableModel behavior and does not declare its options field as translatable. Only when I manually add:
public $implement = [ TranslatableModel::class ]; public $translatable = ['options'];
to the SeoOptions model, the translation controls appear and work as expected.
Could you please add support for translation in the SeoOptions model? It would be great if the plugin could check for RainLab.Translate and automatically enable translation for the options field.
Thank you!