howard/howard_paragraphs
Composer 安装命令:
composer require howard/howard_paragraphs
包简介
This module is designed to provide default kitchen sink paragraph types for Howard University
README 文档
README
Paragraphs integration of the commonly used howard "Kitchen Sink" components with comprehensive Schema.org structured data support.
Version
Current Version: 11.1.9
These components are designed as individual sub-modules that you may enable as needed. These are designed to work with the idfive Component Library frontend and include robust Schema.org markup for enhanced SEO and search engine visibility.
Features
🔍 Schema.org Integration (Latest in v11.1.9)
- Comprehensive Structured Data: 28+ paragraph types include appropriate Schema.org markup
- Validation Compliant: All markup passes Schema.org validation requirements
- Educational Context: Proper academic institution markup for university content
- SEO Optimization: Enhanced search engine understanding and rich snippet generation
- JSON Safety: Robust encoding prevents malformed structured data
- Content Types Supported: Articles, Events, People, Organizations, Educational Programs, Statistics, Creative Works, Video Content, and more
📋 Paragraph Components
- HP Articles: Article listings with proper Schema.org Article markup
- HP Cards: Dynamic Person/Organization/WebPageElement schema based on card type
- HP Carousels: Image galleries with ItemList and ImageObject schema
- HP Countdown: Event countdown timers with Event schema
- HP Data Points: University statistics with Statistic schema
- HP Programs: Academic programs with EducationalOccupationalProgram schema
- HP Tables: Structured data presentation with Table schema
- HP Timelines: Event-based chronological content
- HP YouTube Playlists: Video content with VideoObject schema
- And many more...
Installation
This is a custom Drupal module distributed via Packagist (not Drupal.org).
composer require howard/howard_paragraphs
The module is available on Packagist.
Note: This module is not available through Drupal.org's module repository. It is a custom module specifically designed for Howard University projects and is distributed exclusively through Packagist and GitHub.
Description
This module, and sub-modules, contain markup only (no js or css), those should be provided in the client theme, loaded via the idfive Component Library:
📚 Documentation
Comprehensive documentation is available in the /docs directory:
- Getting Started - Quick start guide and basic concepts
- Installation & Configuration - Detailed setup instructions
- Theming & Customization - Template overrides and styling
- Development Guide - Creating custom components
- External Content & Caching - External feed configuration
- Performance Optimization - Performance improvement techniques
- Security - Security best practices and implementation
- API Reference - Hooks, services, and APIs
- Troubleshooting - Common issues and solutions
- Contributing - How to contribute to the project
Quick Links:
Installation and Updates
Install Via Composer
composer require howard/howard_paragraphs
Update Via Composer
composer update howard/howard_paragraphs
Requirements
- PHP 8.1 or higher
- Drupal 10 or 11
- Paragraphs module
- Other dependencies as specified in composer.json
Submodules
The following submodules are available:
- Accordion: Paragraphs integration of the silc accordion library for use in Howard projects
- Alumni Feed: Provides a paragraphs bundle for embedding feeds of Featured Students and Alumni from profiles.howard.edu as a Kitchen Sink Widget
- Announcements: Paragraphs integration of the ability to add local Announcements in Howard projects
- Announcements Feed: Paragraphs integration of the ability to add Announcements from the dig, in Howard projects
- Articles: Paragraphs integration of the ability to add a feed of Articles in Howard client projects
- Button/Link: Paragraphs integration of buttons/Links for use in Howard projects
- Callout: Paragraphs integration of callout with image for use in Howard projects
- Cards: Paragraphs integration of cards for use in Howard projects
- Carousel with Caption: Paragraphs integration of a Carousel with Caption for use in Howard projects
- Carousel with Modal: Paragraphs integration of a Carousel with Modal for use in Howard projects
- Countdown: Paragraphs integration of a Countdown for use in Howard projects
- Data Point: Paragraphs integration of a Data Point for use in Howard projects
- Deadline Feed: Paragraphs integration of Deadline Feed (from calendar.howard.edu) for Howard projects [DEPRECATED]
- Divider: Paragraphs integration of a simple content divider for Howard projects
- Embed: Paragraphs integration of the ability to add iframes/js/etc for Howard projects
- Events Feed: Paragraphs integration of Events Feed (from calendar.howard.edu) for Howard projects [DEPRECATED]
- Facebook Feed: Paragraphs integration of a Facebook Feed for Howard projects [DEPRECATED]
- Featured People from thedig.howard.edu: Provides a paragraphs bundle for embedding curated Featured People from thedig.howard.edu as a Kitchen Sink Widget
- Featured Article: Paragraphs integration of the ability to add Featured Articles in Howard projects
- Giving Feed: Paragraphs integration of Giving Feed (from giving.howard.edu) for Howard projects
- Graphs: Paragraphs integration of the ability to add custom graphs in Howard projects
- HTML: Paragraphs integration of HTML for use in Howard projects
- Instagram Feed: Paragraphs integration of a Instagram Feed for Howard projects [Note: Requires Facebook Graph SDK and may be affected by Instagram API changes]
- Magazine Feed: Paragraphs integration of Magazine Feed (from magazine.howard.edu) for Howard projects
- Media: Paragraphs integration of media for use in Howard projects
- News Feed: Paragraphs integration of News Feed (from thedig.howard.edu) for Howard projects
- Parallax: Paragraphs integration of parallax scrolling for use in Howard projects
- Photoshelter Feed: Paragraphs integration of Photoshelter Feed into a carousel with modal front end [DEPRECATED]
- Photoshelter Feed Grid: Paragraphs integration of Photoshelter Feed into a silc grid. [DEPRECATED]
- Profiles Feed: Paragraphs integration of Profiles Feed (from profiles.howard.edu) for Howard projects
- Program: Paragraphs integration of embedding a Program (from programs.howard.edu) for Howard projects
- Programs Feed Paragraphs integration of embedding a Programs Feed (from programs.howard.edu) for Howard projects
- Promo Space: Paragraphs integration of a Promotional Space for use in Howard projects
- Promo Space with Multiple Images: Paragraphs integration of a Promotional Space for use in Howard projects
- Table: Paragraphs integration of tablefield module for use in Howard projects, and set up to use tablesaw js
- Testimonial: Paragraphs integration of testimonials for use in Howard projects
- Timeline: Paragraphs integration of a timeline for use in Howard projects
- Twitter Feed: Paragraphs integration of a twitter Feed for Howard projects [Note: May require API updates due to Twitter/X changes]
- Video Slide Show: Provides a paragraphs bundle for rendering a video slide show as a Kitchen Sink widget in Howard projects.
- Views Embed: Paragraphs integration of viewfield module for use in Howard projects
- Webform Embed: Paragraphs integration of webform module for use in Howard projects
- YouTube Playlist: Paragraphs integration of a YouTube playlist for use in Howard projects
- WYSIWYG Text Filter UL: Provides a filter to add ICL markup to UL's embedded in a WYSIWYG.
- Admin Toolbar: Provides toolbar buttons to edit nodes/etc.
CRON and External Content
This module also provides a hook_cron(), to load external paragraph feeds, and invalidate caches when cron is run. This is so things like news and events feeds will update in a timely fashion, without resorting to clearing caches for all sites. This functionality can alo be run directly from the UI, if needed, by visiting Clear all Howard University external content feeds.
Ideally, this gets run via an acquia scheduled job, every three hours or similar: bash /var/www/html/${AH_SITE_NAME}/scripts/hal_sites.sh core-cron.
Configuration Overrides
This module is designed so that config can be overridden locally. Essentially, the config provides a "starter" when installing the module, that can be modified per site. If config is "added to" after initial install, a manual config resync will likely need to be done. Something like:
drush cim -y --partial --source=modules/contrib/howard_paragraphs/SUBMODULE/config/install/
Keep in mind that extensive testing should be done before attempting the above.
Markup Overrides
- You may override paragraphs templates by copying them into the client theme.
- You may override hooks by copying into client .theme, and modifying hook name/etc.
howard/howard_paragraphs 适用场景与选型建议
howard/howard_paragraphs 是一款 基于 Twig 开发的 Composer 扩展包,目前已累计 662 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「components」 「drupal」 「paragraphs」 「Howard University」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 howard/howard_paragraphs 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 howard/howard_paragraphs 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 howard/howard_paragraphs 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provides an add-on purchasable entity.
Drupal integration module for the Kalastatic prototyping and styleguide tool
Provides a base set of configuration and module dependencies for starting new Drupal projects.
This module is designed to provide base idfive kitchen sink widgets.
This module extends Drupal Migrate framework.
Web Font Loader gives you added control when using linked fonts via @font-face.
统计信息
- 总下载量: 662
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-04-10