- Issue created by @aastrong
This ticket is to add to the "Provus news" module, creating a new views block.
1. Create a new views block, which will display the latest published news articles.
2. The view should be displayed in a carousel, showing 4 articles at a time - with arrows to go back and fourth. Total of 16 items total.
3. You should create a new view mode for News articles and use that for the view display.
4. Then theme both the View mode, as well as any theming needed for the slideshow using TWIG And SCSS.
5. The "author" of the articles should come from the Drupal user that created the individual articles. If no image is given, please add a default avatar.
6. The images should have a new image style which are applied to this view mode.
Notes:
The slideshow should use the "slick" slideshow since we're already using that for other parts of the website, so you likely will want to create a new library which calls different slick JS. See the slideshow component.
Please also look at how the view modes are done, so that it can be a global view mode, and not one fixed to a specific content type.
See the file: provus_core.displays.node_settings.yml
Attached is an image of what we're going for.
Active
2.1
Code