I
I
idin2017-01-22 12:03:06
PHP
idin, 2017-01-22 12:03:06

How to create drupal8 homepage??

Hello)) a question of such a plan. I know how to create a drupal main page through the admin panel by creating a node and then mark it as the main one in the site settings and then theme it through page--front.html.twig , but then the node will be visible in the menu content, and I just need a static page where certain blocks will be displayed, and in general the question is as follows. How to programmatically make it so that there is a main page, not glowing in the content, which is simply themed in the template, page--front.html.twig ??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
antiden, 2017-01-26
@Izy

In page.twig, use the {% if is_front %} construct and, for example, insert a block container.

S
sandul, 2017-02-05
@sandul

in the console:
drupal generate:controller
you get an empty page and make it the main one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question