You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like potentially a better default for craft\base\Field::supportedTranslationMethods would be to default to [self::TRANSLATION_METHOD_NONE] if field don't have a content column (hasContentColumn returning false).
The default now assumes if a plugin dev is storing things outside of content, they are also making values things multi-site, which probably isn't the case. Since someone would have to intentionally make that field translatable, it makes sense they would have to deal with their own supportedTranslationMethods method.
The text was updated successfully, but these errors were encountered:
timkelty
changed the title
Default fields w/o content column to non-translatable
Fields should default to not-translatable when when don't have a content column
Oct 18, 2018
It seems like potentially a better default for
craft\base\Field::supportedTranslationMethods
would be to default to[self::TRANSLATION_METHOD_NONE]
if field don't have a content column (hasContentColumn
returning false).The default now assumes if a plugin dev is storing things outside of
content
, they are also making values things multi-site, which probably isn't the case. Since someone would have to intentionally make that field translatable, it makes sense they would have to deal with their ownsupportedTranslationMethods
method.Example: doublesecretagency/craft-smartmap#21
The text was updated successfully, but these errors were encountered: