localgovdrupal / localgov_news
News for LocalGov Drupal
Installs: 74 093
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 2
Open Issues: 22
Type:drupal-module
Requires
- drupal/core: ^10.2
- drupal/entity_browser: ^2.5
- drupal/entity_reference_facet_link: ^2.0.0-beta
- drupal/facets: ^2.0
- drupal/field_group: ~3.0
- drupal/pathauto: ~1.0
- drupal/schema_metatag: ^3.0.3
- drupal/search_api: ^1.17
- drupal/search_api_autocomplete: ^1.3
- localgovdrupal/localgov_core: ^2.12
- localgovdrupal/localgov_topics: ^1.0
Requires (Dev)
- 2.x-dev
- 2.3.10
- 2.3.9
- 2.3.8
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.x-dev
- dev-fix/2.x/minor-rector-fixes
- dev-feature/126-seach-blocks
- dev-feature/129-card-view-mode-news
- dev-release-2.x
- dev-fix/2.x/coding-standards-from-drupal-coder-update
- dev-fix/2.x/drop-drupal-10-1-support
- dev-fix/2.x/94-remove-config-on-uninstall
- dev-fix/115-2.x-link-attributes
- dev-feature/2.x/shared-workflows
- dev-fix/2.x/strict-types
- dev-feature/109-remove-deprecated-domain-group-resolver
- dev-feature/2.x-99-rss-feed
- dev-fix/2.x-103-entitiyReferenceTrait
- dev-feature/2.x/538-change-to-when-tabs-shown
- dev-fix/96-php-phpstan-issues
- dev-fix/37-xml-sitemap
- dev-feature/drupal-10
- dev-fix/75-remove-ds-store
- dev-fix/70-news-search-results
- dev-fix/70-news-search-results-tests
- dev-fix/localgov-core_142-pathauto_patterns
- dev-feature/2.x/allow-preview
- dev-feature/2.x/dont-create-default-newsroom
- dev-fix/2.x/composer-dependency-link_attributes
- dev-fix/51-fix-news-scheduled-transitons-wsod
- dev-fix/facets-2.x
- dev-feature/2.x/47-scarfolk
- dev-feature/2.x/32-promote-entityreference-with-workflow
- dev-feature/41-facet-block-defaults
- dev-feature/2.x/core-288-use-base-theme
- dev-feature/core-288-use-base-theme
- dev-feature/1.x/39-localgov-base-class
- dev-feature/2.x/32-promote-to-entityreference
- dev-feature/newsroom-layout
- dev-feature/32-promote-to-entityreference
- dev-feature/sprint-2-refactor
This package is auto-updated.
Last update: 2024-11-26 12:10:31 UTC
README
LocalGov Drupal News
Provides the pages and navigation for presenting news articles. A part of the LocalGovDrupal distribution.
What is in it?
- Content types:
- News article - a single news article, optionally categorised;
- Newsroom - a landing page to list and feature news articles.
- Blocks:
- News search form;
- Facets - by default date and category.
Install process
-
Standard Drupal module installation process applies.
-
By default the search and facet blocks for news are shown in the view mode for the newsroom, and as blocks on all pages under the
news/*
path if you have the localgov_base theme installed. Alternatively, add, or change the configuration for, these three blocks from the Drupal block layout admin page.
Usage
- Create a Newsroom
- Create one, or more, newsrooms for articles to go into.
- A newsroom has a field in which it is possible to select 3 featured articles.
- The Featured News block shows up to 3 featured articles - if there are fewer than 3 explicitly featured articles the remainder will be filled by the latest promoted articles (if any).
- The Article List block will show 10 articles per page, excluding those in the featured block.
- The limits (3 and 10) can be changed in the localgov_news_list view on the all_news and featured_news displays.
- Add news articles. By default:
- The Categories field uses the LocalGov Topics vocabulary. Edit the field to use alternative or additional vocabularies.
- Image is a required field - authors can upload a new image or select an image from the media library.
- Article nodes are not promoted - see the Featured News section below.
- Article aliases are: [node:localgov_newsroom:entity:url:relative]/[node:localgov_news_date:date:html_year]/[node:title] thus prefacing the path with that of their newsroom, followed by year and sanitised title.
Structured data
- The Schema.org Metatag module is used to generate structured data for individual news articles. This is rendered as JSON LD in the
<head>
element.