My site contains nodes which require different styles (and the occasional inline JS script) and the ability to adjust these styles through the interface rather than via code. These styles are currently implemented via a Code-only text field using <style>
tags, which is not ideal. However for systemic reasons I can't place these node-specific styles in individual libraries.
How can I extract the contents of specific code-only fields and reposition this content as inline styles in the <head>
of the page? I understand that this is not the preferred Drupal way, however I need a solution.