Score:0

How can I prevent a custom node page template is used when editing a node?

ph flag

I'm theming some specific Drupal 9 pages with custom templates (e.g. page--node--17.html.twig).

That said, the theme carries over when I go to https://example.com/node/17/edit.

I only want the template to appear on the front end, not when I go in to edit a node (I want that to remain the same basic page.html.twig that it usually is).

How can I fix this?

id flag
What are the template suggestions in the Twig debug output for one of these pages?
Score:4
cn flag

An easy solution would be visit /admin/appearance and at the bottom, check off:

Use the administration theme when editing or creating content

Brittany avatar
ph flag
Omg THANK YOU. Didn't even know that existed.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.