This project is not covered by Drupal’s security advisory policy.
This Drupal 8 module allows users to place a block on their page which displays the https://github.com/byuweb/byu-news-components.
You can see a demonstration of this module on the BYU homepage: https://www.byu.edu/academics
Next Updates to This Module
We'd like to add the category option so there can be multiple news blocks and each could have a configuration option for which category to use and how many news articles to list.
Installation, Use & Configuration
Installation
- Clone or download this repo into your project (If you download it, make sure to remove '-master' from the module folder name)
- Install the module on your Drupal site
- Place the BYU News block on your page
Configuration (Optional)
The BYU News web component looks something like https://github.com/byuweb/byu-news-components) for more information:
<byu-news categories="all" tags="all" max-date="2017-07-01" min-date="2017-04-01" story-limit="3"></byu-news>
This module uses variables to define each of the attributes listed above. The variables are:
- defined in
[BYU_NEWS Root]/byu_news.module - initialized in
[BYU_NEWS Root]/src/Plugin/Block/ByuNewsBlock.php - and implemented in
[BYU_NEWS Root]/templates/byu-news.html.twig
Default values are:
- categories: 2975
- tags: all
- min-date: today
- max-date: 1 month prior
- story-limit: 3
Supporting organizations:
Project information
- Project categories: Content display
- Created by blakemorgan on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.


