Open martin-wessel-topfloor opened 9 years ago
It might be possible to keep backwards compatibility if the tf_functions_load_json function is updated to allow altering the array before it is saved. A hook could be implemented in field_markup that scans through the array looking for label
, renaming it title
, and moving it under the title-markup
key at the same level as the original label
key. This may mean adding a new title-markup
key.
right now it;s possible to change the title of a field by using the
label:field title
structure anywhere in the JSON, butlabel
isn't immediately obvious and allowing it anywhere can lead to confusion if more than one title is set. Putting it insidetitle-wrapper
also enforces it's connection to other title markup.Since this changes a key, it's likely to break backwards compatibility.