2017 © Pedro Peláez
 

library content-loader-bundle

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

image

silversolutions/content-loader-bundle

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

  • Friday, January 12, 2018
  • by silversolutions
  • Repository
  • 2 Watchers
  • 2 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

ContentLoaderBundle

Build Status, (*1)

There is 2 main ideas behind this bundle:, (*2)

  • 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., (*3)

Example. Lets consider you have a file Resources/example/article.yml:, (*4)

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:, (*5)

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., (*6)

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

The Versions

12/01 2018

dev-epic

dev-epic

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

  Sources   Download

The Requires

 

The Development Requires

12/01 2018

v4.0-beta1

4.0.0.0-beta1

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

  Sources   Download

The Requires

 

The Development Requires

04/12 2016

dev-extension_write

dev-extension_write

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

  Sources   Download

The Requires

 

The Development Requires

04/12 2016

dev-master

9999999-dev

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

  Sources   Download

The Requires

 

The Development Requires

16/06 2015

dev-TravisConfig

dev-TravisConfig

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

  Sources   Download

The Requires

 

The Development Requires