- Issue created by @jedsaet
- πΊπΈUnited States apmsooner
Custom field data types are limited to storing in a single column of the table since multiple data types comprise a table. Normal drupal longtext fields are stored with: value, format, processed but we can only store value so in order to support wysiwyg this was built to save the configured formatted value. It was really designed in this module around the format type being configured once and not have flexibility to dynamically change the format per instance since theres no way to store the format per field value. I'm not sure if theres a better way to handle this but open to suggestions.
- Status changed to Closed: works as designed
about 1 year ago 8:39pm 16 November 2023 - π¨πSwitzerland jedsaet
Yes, that makes absolute sense. Thank you for the explanation! Can't really think of a way to handle this so marking this closed.
- πΊπΈUnited States apmsooner
Thanks, I did consider enabling it as a formatter but I'm also trying to support decoupled and would have to add a computed property there for the formatted value. Computed properties in single column values are a little bit hacky too. I did this with the uri field type by adding a suffix __url to the field name in jsonapi output to support the aliased value. Ideally it would be served as an object composing both but not sure that drupal's property declarations even support that in this way.