2017 © Pedro Peláez
 

library relatednodesbundle

Related Nodes datatype bundle for eZ Publish

image

eab/relatednodesbundle

Related Nodes datatype bundle for eZ Publish

  • Sunday, December 20, 2015
  • by eab
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

EabRelatedNodesBundle

Summary

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

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

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

More documentation, (*4)

Copyright (C) 2015 Enterprise AB Ltd, (*5)

License

Licensed under GNU General Public License 2.0, (*6)

Requirements

Requires eZ Publish 5., (*7)

Installation

  1. Install the bundle into vendors using composer:, (*8)

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

    Or if you want to modify the bundle, clone the bundle into src using git:, (*9)

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

    new Eab\RelatedNodesBundle\EabRelatedNodesBundle(),
  3. Run (in Windows you should be administrator to create symlinks):, (*11)

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

  5. Test it in a Twig template using ez_render_field. A basic usage would be:, (*13)

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

The Versions

20/12 2015

dev-master

9999999-dev

Related Nodes datatype bundle for eZ Publish

  Sources   Download

GPL-2.0

The Requires

 

20/12 2015

0.9.0

0.9.0.0

Related Nodes datatype bundle for eZ Publish

  Sources   Download

GPL-2.0

The Requires