eab/relatednodesbundle 问题修复 & 功能扩展

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

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

eab/relatednodesbundle

Composer 安装命令:

composer require eab/relatednodesbundle

包简介

Related Nodes datatype bundle for eZ Publish

README 文档

README

Summary

eZ Publish 5 bundle providing a very simple Related Nodes (Related Locations) datatype for eZ Publish 5.

Fields using the Related Nodes datatype can be accessed or displayed using the Symfony stack. To edit them you need to use the legacy stack.

The datatype does not check that locations/nodes exist or can be accessed by the current user. You will need to write your own code to do that.

More documentation

Copyright

Copyright (C) 2015 Enterprise AB Ltd

License

Licensed under GNU General Public License 2.0

Requirements

Requires eZ Publish 5.

Installation

  1. Install the bundle into vendors using composer:

     composer require --update-no-dev --prefer-dist eab/relatednodesbundle
    

    Or if you want to modify the bundle, clone the bundle into src using git:

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

     new Eab\RelatedNodesBundle\EabRelatedNodesBundle(),
    
  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 ez_render_field. A basic usage would be:

     <div>
         {{ ez_render_field( content,
                             'my_related_node_field',
                             {
                                 'parameters': {
                                                 'viewType': 'line'
                                               }
                             } ) }}
     </div>
    

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-12-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固