Skip to content

SeoOptions model is not translatable even with RainLab.Translate #124

@m49n

Description

@m49n

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions