Skip to content

How can I make the most recently published item of a content type be the home page? #11461

Answered by ns8482e
DrewBrasher asked this question in Q&A
Discussion options

You must be logged in to vote

HomeRoute allows you to set a ContentItem as Home page of the site, But I guess you still need to edit the content item manually to set it as home every month.

Your best option is to create HomeController with route "~/" and query the content that you want to display on home page

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DrewBrasher
Comment options

@DrewBrasher
Comment options

Answer selected by DrewBrasher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants