How can I make the most recently published item of a content type be the home page? #11461
-
I have a content type called BoardPacket and a new BoardPacket item is created each month. I want the home page of the site to always show the most recently published BoardPacket item. What would be a good way to do that? I thought maybe the HomeRoute module (https://docs.orchardcore.net/en/latest/docs/reference/modules/HomeRoute/) could be used to do this but I have this feature enabled and can't find any settings for it. I thought about creating a widget that used |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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