相等 / iq_博客
相等博客基础模块。
Requires
- php: ^8.1
- drupal/core: ^9.5 || ^10
- drupal/frontendpublishing: ^3.0
- drupal/pagedesigner_block_adaptable: ^3.0 || ^4.0
- drupal/publication_date: ^2.0
- drupal/scheduler_request_cron: ^2.0
- drupal/term_reference_tree: ^2.0
- drupal/twig_tweak: ^3.0
- iqual/iq_entity_browsers: ^3.0
README
相等博客基础模块。
包含
- 博客文章内容类型与节点模板
- 具有模式的视图
- 博客作者角色与权限
子模块
-
iq_blog_scheduling
为博客文章设置基本配置的调度选项。基于 iqual-ch/iqual-schedule-cron 包。 -
iq_blog_comments
评论模块集成,包括基本评论类型(iq_blog_post_comment)和回答类型(iq_blog_post_comment_answer)。 -
iq_blog_like_dislike
集成“喜欢/不喜欢”按钮(来自 https://www.drupal.org/project/like_dislike)。额外的 FieldFormatter 插件仅显示“喜欢”按钮,没有“不喜欢”功能。此模块自动将 iq_like_dislike 字段安装到 iq_blog_post 内容类型。 -
iq_blog_like_dislike_comment
此模块自动将 iq_like_dislike 字段安装到 iq_blog_post_comment 评论类型。 -
iq_blog_like_dislike_comment_answer
此模块自动将 iq_blog_post_comment_answer 字段安装到 iq_blog_post_comment 评论类型。
安装
按常规安装模块
composer require iqual/iq_blog
drush en iq_blog
(可选)安装子模块
drush en iq_blog_scheduling
drush en iq_blog_comment
drush en iq_blog_like_dislike
drush en iq_blog_like_dislike_comment
drush en iq_blog_like_dislike_comment_answer
为ajax视图添加补丁。
composer patch-add drupal/ui_patterns "Support AJAX Views / Fix live preview detection" "https://patch-diff.githubusercontent.com/raw/nuvoleweb/ui_patterns/pull/269.diff"
重建CSS
drush iq_barrio_helper:sass-compile
按照实体浏览器安装说明操作: https://github.com/iqual-ch/iq_entity_browsers/blob/8.x-1.x/README.md#iq_entity_browsers(跳过“使用composer安装模块”步骤)
配置
将 iq_blog_author 角色添加到所需用户。
如果需要:将博客文章作为可筛选的内容类型添加到内容视图中