localgovdrupal / localgov_page_components
Provides reusable paragraph page components for the LocalGovDrupal distribution.
Installs: 71 371
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 1
Open Issues: 6
Type:drupal-module
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-12-10 12:31:30 UTC
README
Reusable paragraphs library for the LocalGovDrupal distribution.
What's in it?
A node field
Provides the localgov_page_components node field. This field can be used to add new Page components or select an existing one within a node. The recommended field widget is Entity browser which should use the Page component browser.
This field is currently used in the localgov_services_page content type. But it can be used in any other content type.
LinkIt integration
The LinkIt module can use URLs belonging to localgov_link and localgov_contact Page components when the localgov_paragraphs module is available. Setup steps follow:
- Access the LinkIt profile configuration page from /admin/config/content/linkit.
- Select the Manage matchers operation for the Default profile. This should take you to /admin/config/content/linkit/manage/default/matchers.
- Click Add matcher which should land you at /admin/config/content/linkit/manage/default/matchers/add.
- Select Page components as the matcher. Save and continue. This should present the Page components matcher edit form.
- Select Link and Contact as Bundle restrictions. Other Paragraph types are unsupported at the moment.
- Limit search results to 20.
- Select the Group by bundle checkbox within Bundle grouping.
- Select Page components from the Substitution Type dropdown within URL substitution.
- Save changes.
- Suggestions provided by LinkIt should now include localgov_link and localgov_contact Page components.
Known issues
Some Page component edit forms (e.g. localgov_documents) try to open a modal. This leads to a modal within a modal scenario which doesn't work. The work around is to edit such Page components from their own edit page. These can be looked up from /admin/content/paragraphs.