localgovdrupal / localgov_outpost
LocalGov Drupal Outpost integration.
Installs: 1 308
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 8
Type:drupal-module
Requires
- drupal/migrate_plus: ^6.0.3
- drupal/office_hours: ^1.11
- drupal/paragraphs: ^1.16
- localgovdrupal/localgov_directories: ^2.5|^3.0@alpha
- localgovdrupal/localgov_paragraphs: ^2.4
- 2.x-dev
- 2.0.0-alpha11
- 2.0.0-alpha10
- 2.0.0-alpha9
- 2.0.0-alpha8
- 2.0.0-alpha7
- 2.0.0-alpha6
- 2.0.0-alpha5
- 2.0.0-alpha4
- 2.0.0-alpha3
- 2.0.0-alpha2
- 2.0.0-alpha1
- 1.x-dev
- 1.0.0-alpha1
- dev-release-2.x
- dev-fix/31-migrate-plus-method-signature
- dev-fix/localgov-paragraphs-dependency
- dev-feature/24-body-rich-text
- dev-feature/24-description-rich-text
- dev-feature/21-map-status-field
- dev-feature/18-spaces-in-cost
- dev-feature/accessibilies
- dev-feature/2.x/11-migrate-organization-name
- dev-feature/2.x/7-cost-options
- dev-feature/7-cost-options
- dev-release-1.x
- dev-feature/5-drupal-10
This package is auto-updated.
Last update: 2024-11-12 11:28:33 UTC
README
Provides integration with Outpost platform Service Directory. A submodule provides a content type for data from an Outpost Service, such that it can be put into a LocalGov Directory. Another submodule can import and keep up to date this content using migrations for Services, Categories, Locations and Suitabilities from Outpost.
Development Status
This is a module in active development. Additional fields will certainly be added. Other content types may also be developed. Use this in testing and development of your site. It is not production ready. As data structures might change treat it as alpha software.
Development tasks and issues are tracked with the module GitHub repository.
Installation
Include the module in your codebase.
composer require localgovdrupal/localgov_outpost
Prefix this, and further, commands with ddev
or lando
etc. as you would normally for your development environment.
If you have not already enable a Database index. LocalGov core includes the database index.
drush en localgov_directories_db
Enable these modules.
drush en localgov_outpost_connector localgov_outpost_service
Create a new directory for your Outpost Services. You do this at
Admin > Content > Add Content > Directory > Add Directory Channel
/node/add/localgov_directory
When creating the directory Enabled Content types should be Outpost service. With this checked you will see a Outpost endpoint field. Enter into this the Outpost Services API URL like https://example.com/app/v1/services
.
To import, or update, content run
drush migrate:import --all --update
This may in time be automated.
You can track the status of imports with
drush migrate:status
If you do not see outpost migrations try clearing cache.
drush cr
Submodules
LocalGov Outpost Service
Provides a pre-configured Service content type to match Outpost. It does not yet have all the fields of outpost. You can also add any fields that are specific to your instance. This content type is automatically configured to be available to LocalGov Directories.
Further development will include more default fields.
LocalGov Outpost Connector
Provides a default set of migrations which can be configured to collect from an Outpost URI placed on a LocalGov Directory Channel.
Further development will include ways to add mappings for custom fields if required; and possibly methods for automating running the migration.