0

What I want to do is to add the title and the body of an article I create on my homepage just as you would do it for a news. I've been trying to make this work but I can't find a way to do it without having to remember the path and then manually creating a block.

1
  • 1
    Please have a look at the Views module. It's in core since Drupal 8. Create a new view, add block display to it listing articles by your desired logic and when you are done go to Drupal's regions/block page and choose the block there to place it in the desired region and adjust its visibility settings to only by shown on the front page. Done.
    – leymannx
    May 6 at 16:08
0

A couple of ways to do this based on your requirements.

  1. Display multiple articles on your homepage

As @leymanxx mentioned create a view with a page display then set the path of the page you created as your default front page.

  1. Display a single article on the homepage

Create an article and set that's article path as your default front page.

You can read more here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.