Sonhja
Sonhja

Reputation: 8448

How to use view content as node content

I'm trying to show a view on homepage node. I created a view that filters 5 first news, and it works perfectly, but I want it to be shown on homepage only.

Any idea?

Upvotes: 1

Views: 57

Answers (2)

jsheffers
jsheffers

Reputation: 1622

If it is a block view, all you have to do is add the block to a region that is available on the home page template. Edit the block, scroll to the bottom choose the option that says Show only on the selected pages, then type <front> in the text area. This will force the block to only show on the home page.

Upvotes: 2

nmc
nmc

Reputation: 8686

If your view is a page View (and not a block view), then your home page can be set from Configuration > Site Information (under System section) which is at admin/config/system/site-information of your site.

Set the Default front page path to your View's path.

Upvotes: 2

Related Questions