How to create Custom pages in Drupal 9
We can create custom pages from HTML template to Drupal 9 like about, contact etc pages by creating a twig file using any content type of that particular page which we created in Drupal 9,select the background give aname and place in durpal module then add description and click save for more infromation gp through he below vedio.
We can create custom pages in drupal 9 with html for inner pages like about, contact etc. Go through article to know about how we can create custom pages in drupal using twig. We can create twig files for any content type to use custom template for respected content types. This will help to create any pages which you have content type for the pages.
How to create pages in drupal with custom twig file
- You need to create content type first for that
- Then you need to create a twig file whcih should follow the path (node--contenttype-machinename.html.tiwg)
- In this twig file you paste you custom html code of body section
- Then you need to render every field from content type to twig file (explained clearly in above video)
- Now you have created inner pages or any custom page on drupal with dynamic