定制 localgovdrupal/localgov_outpost 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

localgovdrupal/localgov_outpost

最新稳定版本:2.0.0-alpha11

Composer 安装命令:

composer require localgovdrupal/localgov_outpost

包简介

LocalGov Drupal Outpost integration.

README 文档

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.

统计信息

  • 总下载量: 1.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-07-05