inspiredminds/contao-bayern-portal 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

inspiredminds/contao-bayern-portal

Composer 安装命令:

composer require inspiredminds/contao-bayern-portal

包简介

Contao extension to show data from the BayernPortal in the front end.

README 文档

README

This Contao extension allows you to integrate data from the BayernPortal via its REST API.

Usage

Configuration

After installing this extension there will be a new back end module called BayernPortal under which you can create a configuration. Each configuration takes a name and the credentials for the BayernPortal API.

Front End Modules

The extension provides 6 different front end modules - one for each "main" entity type of the API, plus some additional ones:

  • Ansprechpartner (Contacts)
  • Behörden (Administrations)
  • Dienststellen (Departments)
  • Dienststelle Leistungen (Services of a Department)
  • Lebenslagen (Circumstances)
  • Leistungen (Services)

Each module will list all records retrieved from the API and provide detail links. Each module is also able to show the details of a record. Some of the modules also have the ability to define a redirect page for some entity types, so that the link to the detail view of that entity can be generated accordingly.

Templating

For most entities, there exists a list template and a detail template. The naming convention is bayernportal_<entity-name>_<list-type> - so the list element template for administrations (Behörden) will be named bayernportal_behoerde_list and its detail template will be named bayernportal_behoerde_detail. You can override the contents of these templates as usual. For the module itself there only exists one template that is used accross all modules: mod_bayern_portal.

In all the BayernPortal templates two special methods are available $this->renderList() and $this->renderDetail(). These methods take an API entity as its argument and they will automatically render either the list view or the detail view for that entity. See the default templates for their usage.

Caching

This extension takes advantage of the built in HTTP Cache of Contao and tags the responses according to the elements visible on a page. In order to increase speed and reduce requests to the API, the public cache should be enalbed for the pages which contain any of the aforementioned modules.

However, if you want to invalidate the cache, so that the newest information from the API is shown you do not have to invalidate the whole HTTP cache. Instead this extension provides an additional maintenance module in the back end where you can invalidate the cache for specific entities. So for example, if you changed the details of some contacts (Ansprechpartner), you can then invalidate only the according pages where information about contacts are shown.

Attributions

The development of this extension was funded by the City of Gunzenhausen.

inspiredminds/contao-bayern-portal 适用场景与选型建议

inspiredminds/contao-bayern-portal 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 inspiredminds/contao-bayern-portal 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 inspiredminds/contao-bayern-portal 我们能提供哪些服务?
定制开发 / 二次开发

基于 inspiredminds/contao-bayern-portal 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2020-12-16