I would like to style one of my custom post type edit screens in the admin section differently from others. It is actually a slider and I would like the content editor to have drag/drop alignment control for some images in the slides.
The usual Drupal way would be to create/override the template for my specific content type using theme suggestions and modify it to my liking, but there is very minimal amount of suggestions for backend. I have enabled twig debug to add suggestions to the markup as comments.
I'm thinking this could be accomplished by
hook_theme_suggestions_HOOK_alter? but I'm unable to pick a start.
I'm using default classy theme.
Take the following content structure for example,
A paragraph of type
Slide 1 which contains a field named
field_title. This paragraph is added to a content type,
"paragraph" field type.
I want to modify how this field appears for this particular content type while editing in the backend. Not just CSS, but I want to add additional HTML elements around this text field for my design needs. But how do I override a template specific to this field when twig debug only shows me following template suggestions
<!-- THEME DEBUG --> <!-- THEME HOOK: 'input__textfield' --> <!-- FILE NAME SUGGESTIONS: * input--textfield.html.twig x input.html.twig --> <!-- BEGIN OUTPUT from 'core/themes/classy/templates/form/input.html.twig' -->