Skip to content

Open-Wide/OwEnhancedRelationListBundle

Repository files navigation

OwEnhancedRelationListBundle for eZ Publish documentation

https://github.com/Open-Wide/OWEnhancedSelection/raw/master/doc/images/Open-Wide_logo.png

Extension:OW Enhanced RelationList v1.0
Requires:eZ Publish 5.x.x (not tested on 3.X)
Author:Open Wide http://www.openwide.fr

Presentation

This bundle provides a data type for single or multiple relations with more advanced features than the default, such as min and max items in the relation

Bundle eZPublish 5 for OwEnhancedRelationList extension

see https://github.com/Open-Wide/OwEnhancedRelationList

Installation

At first, you have to enable the bundle :

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new OpenWide\Publish\EnhancedRelationListBundle\OpenWidePublishEnhancedRelationListBundle(),
    // ...
);

Usage

Add an owenhancedrelationlist attribute in your content class with all the parameters you need.

Twig

{% set values = owenhancedrelationlist_ez_field_value(content, "my_field") %}

PHP

// $container is an instance of "service_container"
$fieldValueHelper = $container->get( 'owenhancedrelationlist.field_value' );
$values = $fieldValueHelper->getFieldValue( $content, "my_field" );

About

Bundle eZPublish 5 for OwEnhancedRelationList extension

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •