Giter Club home page Giter Club logo

ezcoreextrabundle's Introduction

EzCoreExtraBundle

SensioLabsInsight Build Status

Adds extra features to eZ Platform.

Compatibility

  • master branch / v2.x is only compatible with eZ Platform
  • 1.0 branch is compatible with both eZ Platform and eZ Publish 5.4/2014.11.

Features

  • Configurable template variable injection

    Lets you configure variables to inject within your view template configuration. This avoids you to create custom controllers when you need to add a few simple variables to your view.

    ezpublish:
        system:
            my_siteaccess:
                location_view:
                    full:
                        article_test:
                            template: "AcmeTestBundle:full:article_test.html.twig"
                            params:
                                # Following keys will be injected as variables into configured template
                                osTypes: [osx, linux, losedows]
                                secret: %secret%
                                # Parameters resolved by config resolver
                                # See https://doc.ez.no/display/EZP/Dynamic+settings+injection
                                default_ttl: $content.default_ttl$
                                # Using a parameter provider, for more complex usecases.
                                my_provider: {"provider": "my_param_provider"}
    
                            match:
                                Id\Location: 144
  • Context aware Twig global variables

    Lets you define Twig global variables that will be available only in the current SiteAccess.

    ez_core_extra:
        system:
            my_siteaccess:
                twig_globals:
                    my_variable: foo
                    another_variable: 123
                    something_else: [bar, true, false]
  • Simplified authorization checks

    Simplifies calls to $this->isGranted() from inside controllers and is_granted() from within templates when checking against eZ inner permission system (module/function/valueObject).

  • Authentication by e-mail

    By activating enable_email_authentication flag, it will be possible for users to authenticate using their e-mail, in addition to their username.

    ez_core_extra:
        system:
            my_siteaccess:
                enable_email_authentication: true

Requirements

EzCoreExtraBundle currently works eZ Platform v1 and v2 (kernel v6 and v7).

If you're using eZ publish 5.4/2014.11 or Netgen variant, look at 1.1 branch and/or v1.x releases.

Installation

This bundle is available on Packagist. You can install it using Composer.

composer require lolautruche/ez-core-extra-bundle

Then add it to your application:

EzCoreExtraBundle MUST be instanciated AFTER eZ bundles.

// ezpublish/EzPublishKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Lolautruche\EzCoreExtraBundle\EzCoreExtraBundle(),
        // ...
    ];
}

Documentation

See Resources/doc/

ezcoreextrabundle's People

Contributors

amauryvallier avatar emodric avatar lolautruche avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.