In Drupal 8 I want only one node at a time to be promoted to front page. If user promoted new node the existed should un-promoted automatically.
Can we implement this with events in Drupal 8?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
The settings for
FrontPage is provided by default in Drupal 8. Because the
Frontpage in Drupal 8 is a View, so it opens all kind of setting feasibility.
Hence if you go at
Admin/structures/views you will find a view named
Hence, you just need to change the Pager setting. Change
item 10 to
And in sort criteria It is already
Content: Author on (desc), so it will automatically will show new item first. So as you publish new item it will replaced and you have set
item 1 in pager, so only 1 item will be shown on front page which is latest one.