akeneo/extended-attribute-type

为Akeneo PIM CE和EE提供新的属性类型

v2.1.1 2018-06-26 09:05 UTC

README

为Akeneo PIM CE和EE提供新的属性类型

  • TextCollection: 此属性类型可以存储有序的字符串或URL集合。

Simple string collection

需求

安装

您可以使用composer安装此包(请参阅需求部分)。

首先,添加VCS,然后从您的根应用程序启动以下命令

    php composer.phar require --prefer-dist akeneo/extended-attribute-type:2.1

在您的app/AppKernel.php文件中添加以下包

$bundles = [
    new Pim\Bundle\ExtendedAttributeTypeBundle\PimExtendedAttributeTypeBundle(),
];

您还需要注册新的Elasticsearch配置文件;在app/config/pim_parameters.yml中,编辑elasticsearch_index_configuration_files参数并添加以下值

elasticsearch_index_configuration_files:
    - '%kernel.root_dir%/../vendor/akeneo/pim-community-dev/src/Pim/Bundle/CatalogBundle/Resources/elasticsearch/index_configuration.yml'
    - '%kernel.root_dir%/../vendor/akeneo/extended-attribute-type/src/Resources/config/elasticsearch/index_configuration.yml'

对于企业版,还有一个需要注册的文件

elasticsearch_index_configuration_files:
    - '%kernel.root_dir%/../vendor/akeneo/pim-community-dev/src/Pim/Bundle/CatalogBundle/Resources/elasticsearch/index_configuration.yml'
    - '%kernel.root_dir%/../vendor/akeneo/pim-enterprise-dev/src/PimEnterprise/Bundle/WorkflowBundle/Resources/elasticsearch/index_configuration.yml'
    - '%kernel.root_dir%/../vendor/akeneo/extended-attribute-type/src/Resources/config/elasticsearch/index_configuration.yml'
    - '%kernel.root_dir%/../vendor/akeneo/extended-attribute-type/src/Resources/config/elasticsearch/index_configuration_ee.yml'    

如果是全新安装,则可以继续进行标准安装。

另一方面,如果您是从现有的PIM安装的,您将需要重新创建您的Elasticsearch索引

    php bin/console cache:clear --no-warmup --env=prod
    php bin/console akeneo:elasticsearch:reset-indexes --env=prod
    php bin/console pim:product-model:index --all --env=prod
    php bin/console pim:product:index --all --env=prod

贡献

如果您想为这个开源项目做出贡献,请阅读并签署以下贡献协议