localgovdrupal / localgov_news
LocalGov Drupal 新闻
2.3.9
2024-09-17 11:51 UTC
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.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/coding-standards-from-drupal-coder-update
- dev-release-2.x
- 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-09-24 07:30:24 UTC
README
LocalGov Drupal 新闻
提供展示新闻文章的页面和导航。是 LocalGovDrupal 分发的一部分。
包含哪些内容?
- 内容类型
- 新闻文章 - 单篇文章,可选分类;
- 新闻室 - 列出并展示新闻文章的着陆页。
- 块
- 新闻搜索表单;
- 标签 - 默认日期和分类。
安装过程
-
适用标准的 Drupal 模块安装过程。
-
默认情况下,新闻搜索和标签块在新闻室视图模式下显示,如果您已安装 localgov_base 主题,则在
news/*
路径下的所有页面上作为块显示。或者,从 Drupal 块布局管理页面上添加或更改这三个块的配置。
使用方法
- 创建新闻室
- 为文章创建一个或多个新闻室。
- 新闻室有一个字段,可以选择 3 篇特色文章。
- 特色新闻块将显示最多 3 篇特色文章 - 如果没有明确指定的 3 篇特色文章,剩余的文章将由最新的推荐文章(如果有)填充。
- 文章列表块将每页显示 10 篇文章,不包括特色块中的文章。
- 限制(3 和 10)可以在 localgov_news_list 视图的所有新闻和特色新闻显示中更改。
- 添加新闻文章。默认情况下
- 分类字段使用 LocalGov 主题词汇表。编辑字段以使用替代或附加词汇表。
- 图像是必填字段 - 作者可以上传新图像或从媒体库中选择图像。
- 文章节点不会被推荐 - 请参阅下面的特色新闻部分。
- 文章别名是:[node:localgov_newsroom:entity:url:relative]/[node:localgov_news_date:date:html_year]/[node:title],即在路径前加上新闻室的路径,然后是年份和清洗后的标题。
结构化数据
- 使用 Schema.org Metatag 模块生成单个新闻文章的结构化数据。这作为 JSON LD 在
<head>
元素中呈现。