lexik/cmsi18n-bundle

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Lexik mini i18n CMS bundle pour Symfony2.

v1.4.1 2017-02-02 13:33 UTC

This package is auto-updated.

Last update: 2021-09-26 16:33:02 UTC


README

Prerequisites

This bundle requires Symfony 2.8+

Installation

Add composer require lexik/cmsi18n-bundle to your composer.json file:

php composer.phar require "lexik/cmsi18n-bundle"

Register the bundle in app/AppKernel.php:

public function registerBundles()
{
    return array(
        // ...
        new Lexik\Bundle\CMSI18nBundle\LexikCMSI18nBundle(),
    );
}

Configuration

Configure the SSH keys path in your config.yml :

lexik_cmsi18n:
    frontend_layout: '::base.html.twig'
    preferred_locales: []
    templating_extensions: []

Usage

Twig

{{ page_path(block_reference) }}

{{ page_content(block_reference) }}

{{ cms_block(block_reference) }}