Score:0

Is it possible to avoid the use of a module in this problem?

lb flag

I want a website with 4 different pages:

Home, About Us, Services and Contact.

Every page should be rendered by a twig template, sharing the menu and the footer. If I created a theme and have created every template for each page inside of the theme folder, how do I proceed? Should I create a module to define the routes and the controller or is there any other way to do it?

leymannx avatar
ne flag
You use the content type "Basic page" and create 4 pages, each with their titles, this would give you the ability the have one template per node ID. `node--1.html.twig` for example. Even better would be you don't do this with templates and instead use fields or Paragraphs to be able to simple edit the content from the UI and have image styles, rendering and caching been taken care of by Drupal.
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.