umco / umbraco-vorto

1:1 multilingual property editor wrapper for Umbraco
https://our.umbraco.org/projects/backoffice-extensions/vorto
MIT License
44 stars 42 forks source link

Fixes #85 - Allow language to marked as readonly #86

Closed DaveGreasley closed 7 years ago

DaveGreasley commented 7 years ago

This is pretty simple and works for standard input fields but does not take in to account more complicated property editors.

To use this I am setting the IsReadOnly property inside the handler for the FilterLanguages event:

        Vorto.FilterLanguages += (sender, args) =>
        {
            args.Languages.First(x => x.IsoCode == "en-GB").IsReadOnly = true;
        };
DaveGreasley commented 7 years ago

This only really works for basic form inputs, closing PR until I find a way for all