Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I want the book child navigation to be placed above the add child page, etc. links rather than below.
Node.html.twig dumps out the body contents including the bottom links and presumably the child nav. I think that if I turned field.html.twig into field--node--body--book.html.twig, I'd be able to modify the individual components. The only thing is that field.html.twig is so abstracted that I don't know if I'm in the right place much less how to go about picking out the components I want to alter. Am I headed down the right path? Is there a better way to do this?
I've been looking for quite awhile for a solution to this problem. I have a use case where I have Nodes rendered on Pages for normal consumption like on a website. But, I also want it to be a 'printable' type view mode which will not have header/footer etc and will need custom theming (html, css). So I have two view modes for the Node, one is for the website the other I want to customize (let's call it Print).
Hi, I wanted to add some custom text to my commerce confirmation page. I did that successfully by using:
commerce-checkout-completion-message.html.twig
However I want to add customised message that wont be valid for every order completion.
There is a unique: checkout flow, order type, order item type for this, could I use the name from any of those to add to my twig template? using the debug I don't see any suggestions with any of those value sin them though in the order completion page.
I'm developing a new site and have only just started getting to know Drupal itself. I scoured google for answers to this but came up dry.
I created a bare bones custom theme just to get started, but I'm getting an error when attempting to install it:
Drupal\Core\File\Exception\NotRegularDirectoryException: temporary://update-extraction-d208df27/._retrowave is not a directory. in Drupal\Core\File\FileSystem->scanDirectory() (line 665 of core/lib/Drupal/Core/File/FileSystem.php).