localgovdrupal/localgov_news
Composer 安装命令:
composer require localgovdrupal/localgov_news
包简介
News for LocalGov Drupal
README 文档
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:path]/[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.
localgovdrupal/localgov_news 适用场景与选型建议
localgovdrupal/localgov_news 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 119.31k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 02 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 localgovdrupal/localgov_news 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 localgovdrupal/localgov_news 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 119.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2021-02-26