eab/unique-datatypes-bundle 问题修复 & 功能扩展

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

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

eab/unique-datatypes-bundle

最新稳定版本:2.0.1

Composer 安装命令:

composer require eab/unique-datatypes-bundle

包简介

eZ Unique Datatypes extension for eZ Publish

README 文档

README

Summary

eZ Publish 5/Platform bundle wrapping eZ Unique Datatypes extension for eZ Publish 4.0.

This is a collection of common datatypes whose validation has been extended so to verify their uniqueness within given content object attribute. Otherwise, these datatypes behave exactly as their prototypes.

Currently there are two datatypes provided:

  • Unique string (based on Text line system datatype),
  • Unique URL (based on URL system datatype).

Fields using these datatypes can be displayed using the Symfony stack. To edit them you need to use the legacy stack.

More documentation

Copyright

Portions copyright (C) 2007 mediaSELF.pl Portions copyright (C) 2015 Enterprise AB Ltd

License

Licensed under GNU General Public License 2.0

Requirements

Requires eZ Publish 5 or eZ Platform.

Installation

  1. You can use composer to install the bundle. If you have eZ Platform, use version 2:

    composer require --update-no-dev --prefer-dist "eab/unique-datatypes-bundle":"~2.0"

    If you have eZ Publish 5, use version 1:

    composer require --update-no-dev --prefer-dist "eab/unique-datatypes-bundle":"~1.0"

    Or clone the bundle using git:

     cd src
     git clone https://github.com/eab-dev/UniqueDatatypesBundle.git Eab/UniqueDatatypesBundle
  2. Edit the file ezpublish/EzPublishKernel.php, look for the function registerBundles() and add:

    new Eab\UniqueDatatypesBundle\EabUniqueDatatypesBundle(),
  3. Run (in Windows you should be administrator to create symlinks):

    php ezpublish/console ezpublish:legacybundles:install_extensions
    php ezpublish/console ezpublish:legacy:script bin/php/ezpgenerateautoloads.php
    php ezpublish/console cache:clear --no-warmup --env=prod
  4. Use eZ Publish's admin interface to add a field using this datatype to a content type and create some content.

  5. Test it in a Twig template using the ez_render function.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-10-30