定制 silversolutions/content-loader-bundle 二次开发

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

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

silversolutions/content-loader-bundle

最新稳定版本:v4.0.0

Composer 安装命令:

composer require silversolutions/content-loader-bundle

包简介

Symfony bundle for loading eZ Publish content features and fixtures for tests

README 文档

README

Build Status

There is 2 main ideas behind this bundle:

  • Load collections of items (content types, user roles, users, content items) to eZ Publish database from straight-forward yaml files.
  • Load fixtures for tests.

You can describe an initial state of your application in yaml format and use it either for project installation or for running tests in a test environment.

Example. Lets consider you have a file Resources/example/article.yml:

languages:
    english:
        language_code: eng-US
        name: English (US)
        
content_types:
  article:
      identifier: content_article
      names:
          eng-US: Article
      name_schema: <name>
      field_definitions:
          name:
              identifier: name
              field_type_identifier: ezstring
              names:
                  eng-US: Name
          ses_short_description:
              identifier: description
              field_type_identifier: ezxmltext
              names:
                  eng-US: 'Description'
                  
content:                  
    impressum:
      content_type: article
          fields:
              title:
                  eng-US: Impressum
              intro:
                  eng-US: <paragraph>This article describes how to use ContentLoaderBundle.</paragraph>

After you run a command:

ezpublish/console siso:fixtures:load /path/to/article.yml

... you'll have:

  • new content language 'English (US)' with the code 'eng-US',
  • new content type 'content_article',
  • and new content item 'Impressum' created under the eZ Publish main node.

Supported features

  • Content languages
  • Content types
  • Roles
  • User groups
  • Users
  • Content items

Unsupported features

  • Sections
  • Object states

Limitations

  • Currently the bundle mainly useful for creating new items. Update of existing content is supported only for content types.
  • DatabaseSchemaLoader supports only mysql

See also

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-06-12