Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By baumgartconor on
I currently have contextual links working for node templates (node--contenttype.html.twig) in my Drupal 8 site. They're set up like so:
<div class="contextual-region">
{{ title_suffix }}
Yadda yadda
</div>
However when I am working on a custom page (page--node--12.html.twig for example) this doesn't work. It's pretty clear from the documentation for page.html.twig that this {{ title_suffix }} variable simply isn't available. Is there a way to include it on the page? Or maybe there's a different way to get contextual links on the page? I'd like to give the user the ability to edit the current page without navigating through the backend.