localgovdrupal / localgov_page_components
为LocalGovDrupal发行版提供可重用的段落页面组件。
1.1.7
2024-09-10 11:52 UTC
Requires
- drupal/entity_browser: ^2.5
- drupal/inline_entity_form: ^1.0-rc6 || ^3.0
- drupal/linkit: ~6.0.2 || ^6.1.1
- drupal/paragraphs: ^1.11
- 1.x-dev
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-alpha3
- 1.0.0-alpha2
- 1.0.0-alpha1
- dev-release-1.x
- dev-feature/inline-entity-form-1.x-3.x
- dev-ief-update
- dev-56/fix/is-syncing
- dev-fix/1.x/keep-name-consistant
- dev-fix/1.x/49-strict-types
- dev-fix/1.x/use-more-strict-version-requirement
- dev-feature/1.x/shared-workflows
- dev-fix/1.x/strict-types-coding-standards
- dev-fix/linkit-611-compatibility
- dev-fix/replace-and
- dev-fix/41-php-phpstan-issues
- dev-feature/38-coding-standards
- dev-feature/drupal-10
- dev-chore/patch-cleanup
- dev-fix/github-workflow-update-2022-05-01
- dev-feature/update-github-actions
- dev-feature/wysiwyg-embed
- dev-fix/23-documents-edit-patch
- dev-feature/localgov-specific-paragraphs
- dev-feature/better-ux-for-widget
- dev-fix/8-field-rename
- dev-feature/78-naming-conventions
This package is auto-updated.
Last update: 2024-09-10 11:53:13 UTC
README
为LocalGovDrupal发行版提供可重用的段落库。
它包含什么?
节点字段
提供 localgov_page_components 节点字段。该字段可用于在节点中添加新的页面组件或选择现有的一个。推荐的字段小部件是 实体浏览器,应使用 页面组件 浏览器。
该字段目前用于 localgov_services_page 内容类型。但也可以用于任何其他内容类型。
LinkIt 集成
当 localgov_paragraphs 模块可用时,LinkIt 模块可以使用属于 localgov_link 和 localgov_contact 页面组件的 URL。设置步骤如下
- 从 /admin/config/content/linkit 访问 LinkIt 配置页面。
- 为 默认 配置选择 管理匹配器 操作。这应将您带到 /admin/config/content/linkit/manage/default/matchers。
- 点击 添加匹配器,这将带您到 /admin/config/content/linkit/manage/default/matchers/add。
- 选择 页面组件 作为匹配器。 保存并继续。这将显示 页面组件 匹配器编辑表单。
- 选择 链接 和 联系 作为 捆绑限制。目前不支持其他段落类型。
- 将 搜索结果限制 为 20。
- 在 捆绑分组 中选择 按捆绑分组 复选框。
- 在 URL 替换 中从 替代类型 下拉列表中选择 页面组件。
- 保存更改.
- LinkIt 提供的建议现在应包括 localgov_link 和 localgov_contact 页面组件。
已知问题
一些页面组件编辑表单(例如 localgov_documents)尝试打开一个模态。这导致模态中嵌套模态的场景,这是不工作的。解决方法是直接从它们自己的编辑页面编辑这些页面组件。这些可以从 /admin/content/paragraphs 查找。