drupalninja / social
为Drupal提供Twitter风格的社交功能。
dev-main
2022-10-07 03:05 UTC
Requires
- ckeditor/ajax: ^4.14
- ckeditor/autocomplete: ^4.14
- ckeditor/mentions: ^4.14
- ckeditor/textmatch: ^4.14
- ckeditor/textwatcher: ^4.14
- ckeditor/xml: ^4.14
- drupal/ckeditor_mentions: ^2.0@RC
- drupal/flag: ^4.0@beta
- drupal/maxlength: ^2.0
README
此composer功能配置用户资料页面,使其类似于Twitter和其他社交媒体应用程序的用户时间线。
阅读完整教程:https://medium.com/@drupalninja/create-a-twitter-style-application-in-drupal-8207e4aaef96
主要功能
- 带有短帖子的用户时间线
- 用户提及
- 线程
- 点赞
- 关注用户帖子
- Drush命令用于创建测试用户
- 易于定制
快速开始
-
为提及安装CKEditor库
遵循CKEditor的README说明安装所需库 https://git.drupalcode.org/project/ckeditor_mentions/-/blob/8.x-2.x/README.md
-
安装Social功能模块
composer require 'drupalninja/social:1.x-dev'
-
启用Social功能
drush en -y social
-
放置时间线区块
如果您不使用Olivero主题,则需要使用区块布局或布局构建器将时间线区块放置在用户页面上。
-
创建带有评论的测试用户
本功能包括一个drush命令,可以生成测试用户和评论。
drush sdu
自定义
- 视图:可以自定义liked_posts和posts_timeline
- "帖子"评论类型可以自定义