定制 pennebaker/craftcms-thearchitect 二次开发

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

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

pennebaker/craftcms-thearchitect

Composer 安装命令:

composer require pennebaker/craftcms-thearchitect

包简介

CraftCMS plugin to generate content models from JSON data.

README 文档

README

The Architect

The Architect for Craft CMS

CraftCMS Plugin to Construct Groups, Fields, Sections, EntryTypes, Transforms, Globals, Assets, Categories, and Users & User Groups from JSON data.

Installation

  1. Move the thearchitect directory into your craft/plugins directory.
  2. Go to Settings > Plugins from your Craft control panel and enable the thearchitect plugin

Example files can be found in the library directory

Exported Constructs

If you want to provide json files to be loaded throught the CP. Put the files in craft/config/thearchitect. If using a version prior to v1.6.0 the folder for these files is craft/plugins/thearchitect/content. This path is also configurable by creating a config file at craft/config/thearchitect.php

'modelsPath' => str_replace('plugins', 'config', __dir__.'/'),

Migration File

The migration file is named _master_.json and located inside the folder with the other json files listed above. Migration files are intended to be used within a single site. They are not intended to transfer content models between websites.

Rollback

As of version 1.6.0, if Craft crashes with an exception, the Architect will attempt to roll back any changes that were made to the database for the operation. This should help prevent any issues that might appear from a partial import. If an exception happens please report them to on the repo's issues. A backup that was created during a migration that was successfully imported will be delete. Otherwise you can find the db backup inside craft/storage/backups. This is in case the rollback feature doesn't restore properly. It is not recommended to rely on this auto backup/restore feature.

JSON Schema

The example / syntax schemas are located on the Repo's Wiki

If you're using the Atom text editor, you can download a snippet library to help speed up your writing custom models for the plugin.

Field Layouts using names instead of handles

If you have some field layouts that use names this functionality was dropped in version 1.0.3. Alternatively you can update your old models to use handles to fix them for newer versions.

Special thanks to Shannon Threadgill for his totally boss illustrations.

pennebaker/craftcms-thearchitect 适用场景与选型建议

pennebaker/craftcms-thearchitect 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 288 次下载、GitHub Stars 达 171, 最近一次更新时间为 2016 年 12 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 pennebaker/craftcms-thearchitect 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 171
  • Watchers: 12
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-09